Skip to content

Commit

Permalink
Preserve CVarArgs by calling to CLLog instead of CLDebug
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRabil committed Sep 28, 2021
1 parent 0be9823 commit 92a9302
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Swog/Drivers/OSLog/OSSignpostOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class OSSignpostOperation: Logger {
@usableFromInline
internal var signpostID: OSSignpostID!

@usableFromInline
internal var finished = false

public init(category: StaticString, name: StaticString) {
self.name = name
super.init(category: category)
Expand Down Expand Up @@ -58,7 +61,7 @@ public class OSSignpostOperation: Logger {
}
#endif

CLDebug(category, message, args)
CLLog(level: .debug, category, message, args)
signpost(.event, name, message, args, id: signpostID)
}

Expand All @@ -72,7 +75,7 @@ public class OSSignpostOperation: Logger {
#endif

if let message = message {
CLDebug(category, message, args)
CLLog(level: .debug, category, message, args)
}

Self.delegate?.classicOperation(self, updatedWithType: .end, formatString: message, args: args)
Expand Down

0 comments on commit 92a9302

Please sign in to comment.