Skip to content

Commit

Permalink
NetworkLogger to not send .trace logs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Feb 7, 2021
1 parent 3ab4a27 commit 6fd130c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Pulse/NetworkLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class NetworkLogger: NSObject {

public static func makeDefaultLogger() -> Logger {
var logger = Logger(label: "network")
logger.logLevel = .trace
logger.logLevel = .debug
return logger
}

Expand All @@ -43,8 +43,8 @@ public final class NetworkLogger: NSObject {
let event = NetworkLoggerEvent.TaskDidStart(request: request)

logger.log(
level: .trace,
"Did start request \(task.originalRequest?.url?.absoluteString ?? "null")",
level: .debug,
"Send \(urlRequest.httpMethod ?? "") \(task.originalRequest?.url?.absoluteString ?? "")",
metadata: makeMetadata(context, task, .taskDidStart, event, date)
)
}
Expand Down

0 comments on commit 6fd130c

Please sign in to comment.