mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 11:10:07 +00:00
🎨 Don't panic on Fatal
This commit is contained in:
@@ -17,6 +17,7 @@ package logger
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
"runtime"
|
||||
@@ -254,7 +255,7 @@ func (l *Logger) Tracef(t string, args ...interface{}) {
|
||||
|
||||
func (l *Logger) Fatal(args ...interface{}) {
|
||||
l.send(log.LevelFatal, "", args...)
|
||||
panic("fatal error")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
func (l *Logger) Info(args ...interface{}) {
|
||||
|
Reference in New Issue
Block a user