Skip to content

Add log level switch#54

Open
stephenwithav wants to merge 3 commits into
CrunchyData:masterfrom
stephenwithav:add-log-level-switch
Open

Add log level switch#54
stephenwithav wants to merge 3 commits into
CrunchyData:masterfrom
stephenwithav:add-log-level-switch

Conversation

@stephenwithav

Copy link
Copy Markdown

No description provided.

CRUNCHY_LOG_LEVEL is the environment variable; log-level the switch.

If --debug is included as a flag, it will supercede --log-level.

@abrightwell abrightwell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall, I'm supportive of adding a "log level" configuration option. I think this makes sense. The part that I'm less enthused about is the potential confusion that having a separate 'debug' configuration option might create. Minor changes requested.

Comment thread main.go
LogLevel = flags.FlagInfo{
Namespace: "general",
Name: "log-level",
EnvVar: "CRUNCHY_LOG_LEVEL",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would need to be CRUNCHY_WATCH_LOG_LEVEL to maintain consistency with the namespace-ing of the application's configuration parameters.

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