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

Add support to custom log level through command line flag and environment variable #842

Merged
merged 17 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changed to use ParseLogLevel instead of Unmarshal
vitorhugoro1 committed Jun 18, 2024

Verified

This commit was signed with the committer’s verified signature.
MrAlias Tyler Yahn
commit 91e4e34ef58b7a05ca1e72110b6477f5cf942cbe
4 changes: 1 addition & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
@@ -103,9 +103,7 @@ func main() {
}

if logLevel != "" {
var level auto.LogLevel

err := level.UnmarshalText([]byte(logLevel))
level, err := auto.ParseLogLevel(logLevel)
if err != nil {
logger.Error(err, "failed to parse log level")
return