Skip to content

Commit

Permalink
Add panic on fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
leodeim committed Dec 19, 2023
1 parent c5a8ad1 commit d9278f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ func (p *processor) write(m *message) {

p.writeByMode(w, str)
}

if m.level == Fatal {
panic(m.text)
}
}

func (p *processor) writeByMode(w *writer, msg string) {
Expand Down

0 comments on commit d9278f3

Please sign in to comment.