Skip to content

Commit fcc851d

Browse files
fpseverinogwynne
andauthored
Apply suggestion from @gwynne
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
1 parent f1a04bc commit fcc851d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/ConsoleLogger/LoggerFragments/LoggerFragment.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ extension Logger.Metadata {
324324
.sorted(by: { $0.0 < $1.0 })
325325
.map { "\($0): \($1.descriptionWithoutExcessQuotes)" }
326326
.joined(separator: ", ")
327-
return "[\(contents)]"
327+
"[" + self.lazy
328+
.sorted(by: { $0.key < $1.key })
329+
.map { "\($0): \($1.descriptionWithoutExcessQuotes)" }
330+
.joined(separator: ", ")
331+
+ "]"
328332
}
329333
}

0 commit comments

Comments
 (0)