-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling logrus.Log
with logrus.FatalLevel
should behave as logrus.Fatal
#993
Comments
Sorry for not getting to this sooner. if level == FatalLevel {
entry.Logger.Exit(1)
} @freeformz what are your thoughts on this? |
Either Maybe @sirupsen or @dgsb can weigh in on which direction is the error, otherwise I'm going to have to review the git history to see if it indicates the intent. FWIW: My inclination atm would be to make |
I would appreciate that @freeformz ! |
@freeformz I'm not sure what was the initial intent, but we cannot change the behaviour. That would be a breaking change for v1 users. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
I made an error wrapper for my project that embeds the logging level wanted for the error.
Therefore I have a method that calls
logrus.Log(level, "error description")
, and I was surprised that iflevel
is equal tologrus.FatalLevel
,logrus.Log
won't exit aslogrus.Fatal
would.Is this the wanted behavior ? If so, why ?
The text was updated successfully, but these errors were encountered: