Skip to content

Commit 2f137a1

Browse files
committed
Support trace-from-signpost for logs captured in time zones ahead of UTC
We need to match `+` in the date component of the log so we can capture times such as `2025-08-20 09:19:44.156241+0200`. Previously this only worked for times that were behind UTC.
1 parent 1ca9780 commit 2f137a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Diagnose/TraceFromSignpostsCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private struct LogParseRegex {
3131
private init() {
3232
regex = Regex {
3333
Capture(as: dateComponent) {
34-
#/[-0-9]+ [0-9:.-]+/#
34+
#/[-0-9]+ [0-9:.+-]+/#
3535
}
3636
" "
3737
#/[0-9a-fx]+/# // Thread ID

0 commit comments

Comments
 (0)