diff --git a/Sources/TelemetryClient/SignalManager.swift b/Sources/TelemetryClient/SignalManager.swift index 45dd882..fe5da4c 100644 --- a/Sources/TelemetryClient/SignalManager.swift +++ b/Sources/TelemetryClient/SignalManager.swift @@ -68,7 +68,13 @@ internal class SignalManager: SignalManageable { } /// Adds a signal to the process queue - func processSignal(_ signalType: TelemetrySignalType, for clientUser: String? = nil, floatValue: Double? = nil, with additionalPayload: [String: String] = [:], configuration: TelemetryManagerConfiguration) { + func processSignal( + _ signalType: TelemetrySignalType, + for clientUser: String? = nil, + floatValue: Double? = nil, + with additionalPayload: [String: String] = [:], + configuration: TelemetryManagerConfiguration + ) { DispatchQueue.global(qos: .utility).async { let enrichedMetadata: [String: String] = configuration.metadataEnrichers .map { $0.enrich(signalType: signalType, for: clientUser, floatValue: floatValue) } @@ -225,7 +231,9 @@ private extension SignalManager { } #else #if DEBUG - configuration.logHandler?.log(message: "[Telemetry] On this platform, Telemetry can't generate a unique user identifier. It is recommended you supply one yourself. More info: https://telemetrydeck.com/pages/signal-reference.html") + let line1 = "[Telemetry] On this platform, Telemetry can't generate a unique user identifier." + let line2 = "It is recommended you supply one yourself. More info: https://telemetrydeck.com/pages/signal-reference.html" + configuration.logHandler?.log(message: "\(line1) \(line2)") #endif return "unknown user \(DefaultSignalPayload.platform) \(DefaultSignalPayload.systemVersion) \(DefaultSignalPayload.buildNumber)" #endif