Skip to content

Commit

Permalink
Fix broken test output produced by MakeFatalToPanic
Browse files Browse the repository at this point in the history
The output from `MakeFatalToPanic` doesn't add a newline to the logged
entry, breaking the Go test output which expects final logged messages
to have their own newline.
  • Loading branch information
Arran Walker committed May 30, 2021
1 parent c715666 commit 8bc1c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/fatal_panic.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (s *fatalLogHook) Levels() []logrus.Level {
}

func (s *fatalLogHook) Fire(e *logrus.Entry) error {
_, _ = fmt.Fprint(s.output, e.Message)
_, _ = fmt.Fprintln(s.output, e.Message)

panic(e)
}
Expand Down

0 comments on commit 8bc1c25

Please sign in to comment.