Skip to content

Calling logrus.Log with logrus.FatalLevel should behave as logrus.Fatal #993

@clafoutis42

Description

@clafoutis42

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 if level is equal to logrus.FatalLevel, logrus.Log won't exit as logrus.Fatal would.
Is this the wanted behavior ? If so, why ?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions