Fix message reduction error
The unified logging system (aka OSLog) expects a OSLogMessage and does not allow just passing in a string variable. Instead the variable has to be interpolated into a string literal, which sets the default privacy setting to 'private' and hence reducts the whole message. This commit sets the privacy setting to 'public'.
This commit is contained in:
@@ -82,7 +82,7 @@ public struct LoggingOSLog: LogHandler {
|
||||
let messageParts = [message.description, metadataCSV]
|
||||
|
||||
let message = messageParts.compactMap { $0 }.joined(separator: " -> ")
|
||||
self.oslogger.log(level: OSLogType.from(loggerLevel: level), "\(message)")
|
||||
self.oslogger.log(level: OSLogType.from(loggerLevel: level), "\(message, privacy: .public)")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user