You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Logger).Log(logrus.FatalLevel, ...) also will not actually exit the program. (Logger).Fatal literally just called (Logger).Log(FatalLevel) followed by (Logger).Exit(1). So it makes sense that an isolated call to Log(), even with the FatalLevel specified, would not call the exit func, because it is also not terminating the program, unlike Fatal().
l := logrus.New()
l.ExitFunc = func(int) { fmt.Println("exit") }
l.Log(logrus.FatalLevel, "test") // The exit function was not called!
l.Fatal("test") // The exit function is called!
Designed so?
The text was updated successfully, but these errors were encountered: