Use GITLAB_LOG_LEVEL for Sidekiq server logs
What does this MR do and why?
Currently Sidekiq server outputs INFO level logs and there isn't a way to change that.
Abide by GITLAB_LOG_LEVEL
for Sidekiq server logs.
For example to reduce log volume when there are no warnings/errors. Or to allow debug log output.
Related to &6034
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Add a
env.runit
file to the root directory of GDK - Add a line
export GITLAB_LOG_LEVEL=warn
to theenv.runit
file gdk restart
- Observe logs with and without the environment variable set, or set to different values
If you set it to e.g. warn
, then Sidekiq no longer outputs debug
and info
level logs.