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

Added config option for log level #213

Merged

Conversation

Mixaster995
Copy link
Contributor

Signed-off-by: Mikhail Avramenko [email protected]

part of networkservicemesh/sdk#1008

Signed-off-by: Mikhail Avramenko <[email protected]>
main.go Outdated
Comment on lines 157 to 163
func setLogLevel(level string) {
l, err := logrus.ParseLevel(level)
if err != nil {
logrus.Fatalf("invalid log level %s", level)
}
logrus.SetLevel(l)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use inline

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, done

Signed-off-by: Mikhail Avramenko <[email protected]>
@denis-tingaikin denis-tingaikin merged commit 10634da into networkservicemesh:main Oct 11, 2021
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 this pull request may close these issues.

2 participants