Skip to content

Commit d8c7356

Browse files
committed
fix: fatal logger notification
1 parent d5a0adc commit d8c7356

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/logger.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ func Error(msg string, args ...interface{}) {
5454

5555
func Fatal(msg string, args ...interface{}) {
5656
log.SetOutput(os.Stdout)
57+
// Format message if there are additional arguments
58+
formattedMessage := msg
59+
if len(args) > 0 {
60+
formattedMessage = fmt.Sprintf(msg, args...)
61+
}
5762
logWithCaller("ERROR", msg, args...)
63+
NotifyError(formattedMessage)
5864
os.Exit(1)
5965
}
6066

0 commit comments

Comments
 (0)