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

Setting different log levels per services does not work #4089

Closed
rhafer opened this issue Jul 4, 2022 · 0 comments · Fixed by #4102
Closed

Setting different log levels per services does not work #4089

rhafer opened this issue Jul 4, 2022 · 0 comments · Fixed by #4102
Assignees
Labels

Comments

@rhafer
Copy link
Contributor

rhafer commented Jul 4, 2022

Describe the bug

Increasing the loglevel per service is currently not possible. E.g. starting ocis with:

OCIS_LOG_LEVEL=error PROXY_LOG_LEVEL=debug ocis/bin/ocis server

does not have the desired effect (debug log for proxy, error for all other services).

Something seems racy here. Sometimes the proxy (an a few other services!) will pick up the "debug" level. And sometime this setting just has no effect.

I guess this is at least partially related to the fact that we call zerolog.SetGlobalLevel() for every service during startup see:

switch strings.ToLower(options.Level) {

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

Successfully merging a pull request may close this issue.

2 participants