Skip to content

Commit

Permalink
Add some additional logging to network calls (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen authored Jan 30, 2025
1 parent 6767c04 commit 2a228cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Palace/Network/TPPNetworkResponder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extension TPPNetworkResponder: URLSessionDataDelegate {
private func logTaskCompletion(taskID: Int, startDate: Date, metadata: inout [String: Any]) {
let elapsed = Date().timeIntervalSince(startDate)
metadata["elapsedTime"] = elapsed
Log.info(#file, "Task \(taskID) completed, elapsed time: \(elapsed) sec")
Log.info(#file, "Task \(taskID) completed (\(metadata["currentRequest"] ?? "nil")), elapsed time: \(elapsed) sec")
}


Expand Down

0 comments on commit 2a228cc

Please sign in to comment.