diff --git a/Sources/SwiftBAMDC/SwiftDataCollector.swift b/Sources/SwiftBAMDC/SwiftDataCollector.swift index baa9ab9..ef772ff 100755 --- a/Sources/SwiftBAMDC/SwiftDataCollector.swift +++ b/Sources/SwiftBAMDC/SwiftDataCollector.swift @@ -38,10 +38,6 @@ public class SwiftDataCollectorInit { var sm:SwiftMetrics - var logLevel : LoggerMessageType = .info - - logLevel = self.bamConfig.logLevel - sm = swiftMetricsInstance self.monitor = sm.monitor() diff --git a/Sources/SwiftMetrics/SwiftMetrics.swift b/Sources/SwiftMetrics/SwiftMetrics.swift index 68259fc..5ac27f4 100644 --- a/Sources/SwiftMetrics/SwiftMetrics.swift +++ b/Sources/SwiftMetrics/SwiftMetrics.swift @@ -69,7 +69,7 @@ private func receiveAgentCoreData(cSourceId: UnsafePointer, cSize: CUnsig let opaquePointer = OpaquePointer(data) let cstrPointer = UnsafePointer(opaquePointer) - let message = String(cString:cstrPointer) ?? "" + let message = String(cString:cstrPointer) if swiftMon != nil { swiftMon!.raiseCoreEvent(topic: source, message: message) }