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

Configure log level #928

Open
e-zhydzetski opened this issue Oct 15, 2023 · 1 comment
Open

Configure log level #928

e-zhydzetski opened this issue Oct 15, 2023 · 1 comment

Comments

@e-zhydzetski
Copy link

Is your feature request related to a problem? Please describe.
ZincSearch log is full of debug msgs like

{"level":"debug","index":"events","shard":"22zDW8VJB9m","minID":0,"maxID":1,"time":"2023-10-15T07:23:10Z","message":"consume wal begin"}
{"level":"debug","index":"events","shard":"22zDW8VJB9m","minID":1,"maxID":1,"time":"2023-10-15T07:23:11Z","message":"consume wal end"}
{"level":"debug","index":"events","shard":"22zDW8VJDhu","minID":0,"maxID":2,"time":"2023-10-15T07:23:11Z","message":"consume wal begin"}
{"level":"debug","index":"events","shard":"22zDW8VJCdq","minID":0,"maxID":2,"time":"2023-10-15T07:23:11Z","message":"consume wal begin"}
...

I want to disable them and log only errors, but can't find any configuration option about log level in documentation

Describe the solution you'd like
LOG_LEVEL env variable to control minimal relevant log level
Like LOG_LEVEL=ERROR or LOG_LEVEL=error or LOG_LEVEL=3 (according to zerolog)

Describe alternatives you've considered
As alternative I can use filtering feature in external log processing pipeline, that is inconvinient in simple deployments

Additional context
No

@gaby
Copy link
Contributor

gaby commented Oct 24, 2023

👍🏻 for adding this

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

No branches or pull requests

2 participants