Skip to content

Commit

Permalink
added fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
Keloran committed Feb 25, 2023
1 parent 077155f commit 56d43bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,10 @@ func Warnf(format string, inputs ...interface{}) string {
}

// </editor-fold>

func (b BugFixes) Fatal(inputs ...interface{}) {
b.Level = "fatal"
b.FormattedLog = fmt.Sprintf("%v", inputs...)
b.DoReporting()
panic(b)
}

0 comments on commit 56d43bf

Please sign in to comment.