Skip to content

Commit

Permalink
check if '+' flag is set in state
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-xyz committed Aug 22, 2019
1 parent 4b9b3b0 commit 210fa40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/telemetry/event.go
Expand Up @@ -22,7 +22,11 @@ func (e Event) Format(f fmt.State, r rune) {
}
fmt.Fprint(f, e.Message)
if e.Error != nil {
fmt.Fprintf(f, ": %+v", e.Error)
if f.Flag('+') {
fmt.Fprintf(f, ": %+v", e.Error)
} else {
fmt.Fprintf(f, ": %v", e.Error)
}
}
for _, tag := range e.Tags {
fmt.Fprintf(f, "\n\t%v = %v", tag.Key, tag.Value)
Expand Down

0 comments on commit 210fa40

Please sign in to comment.