Skip to content

Commit 86c4b08

Browse files
committed
trace2: write normal format events in snake case
A previous patch [1] added the ability to write strings in snake case. However, this was not applied to writing events in the normal format - events that should be written as child_start or child_exit are currently written as childstart and childexit. This patch corrects this issue. [1]: 7d2a8cc
1 parent cbe331f commit 86c4b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/Trace2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ protected string BuildNormalString(string message)
467467

468468
// Git's TRACE2 normal format is:
469469
// [<time> SP <filename>:<line> SP+] <event-name> [[SP] <event-message>] LF
470-
return $"{time} {source,-33} {Event.ToString().ToLower()} {message}";
470+
return $"{time} {source,-33} {Event.ToString().ToSnakeCase()} {message}";
471471
}
472472
}
473473

0 commit comments

Comments
 (0)