From b89ef8d4aa3e0e3f942f66821a40ea5d0a344e00 Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Fri, 8 Sep 2023 11:07:05 +0200 Subject: [PATCH] Fix line length warnings in SignalManager --- Sources/TelemetryClient/SignalManager.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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