Skip to content

Print FatalLevel log, exit function will not be called? #1078

@edoger

Description

@edoger

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions