We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69fca5e commit 0499449Copy full SHA for 0499449
Sources/OSLogLogger.swift
@@ -206,6 +206,10 @@ private extension OSLogLogger {
206
var pubMeta = [String]()
207
var privMeta = [String]()
208
metadata.lazy.sorted{ $0.key < $1.key }.forEach{ keyVal in
209
+ /* If we wanted to drop the “pub.” prefix for public metadata. */
210
+// let isPub = keyVal.key.hasPrefix(Self.pubMetaPrefix)
211
+// let key = (isPub ? String(keyVal.key.dropFirst(Self.pubMetaPrefix.count)) : keyVal.key)
212
+// let flat = prettyMetadataKeyValPair((key, keyVal.value))
213
let flat = prettyMetadataKeyValPair(keyVal)
214
if keyVal.key.starts(with: Self.pubMetaPrefix) { pubMeta.append(flat)}
215
else {privMeta.append(flat)}
0 commit comments