Skip to content
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

infinite recursion in Level.String() #906

Closed
noushavandijk opened this issue Feb 20, 2019 · 0 comments · Fixed by #907
Closed

infinite recursion in Level.String() #906

noushavandijk opened this issue Feb 20, 2019 · 0 comments · Fixed by #907

Comments

@noushavandijk
Copy link
Contributor

There is an infinite recursion in Level.String() when MarshalText() calls Level.String() via the %q

func TestLogLevelString(t *testing.T) {
    var loggerlevel logrus.Level
    loggerlevel = 32
    t.Logf("test: %s", loggerlevel.String())
}

I can make an proposal in a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant