You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of logs tools (e.g.: splunk) that allows grouping stacktraces into a single event based on the fact all the lines starting from the 2nd start with a space (like java stacktraces).
So it would be nice it go stacktraces could do the same:
panic: a problem
goroutine 1 [running]:
main.main()
/tmp/sandbox799394689/main.go:15 +0x40
to (. instead of space for visibility)
panic: a problem
.
.goroutine 1 [running]:
.main.main()
. /tmp/sandbox799394689/main.go:15 +0x40
The text was updated successfully, but these errors were encountered:
This seems very likely to break existing programs that parse the panic output of other programs. I recall seeing code like that though I can't find it at the moment. While we could make this kind of change, it's hard to believe that it's worth doing at this point. It's easy enough to process the output the way some other tool expects.
andybons
changed the title
Have go errors always start by a whitespace from the 2nd line
proposal: have go errors always start by a whitespace from the 2nd line
Mar 9, 2019
There are a number of logs tools (e.g.: splunk) that allows grouping stacktraces into a single event based on the fact all the lines starting from the 2nd start with a space (like java stacktraces).
So it would be nice it go stacktraces could do the same:
to (
.
instead of space for visibility)The text was updated successfully, but these errors were encountered: