Skip to content

Use GITLAB_LOG_LEVEL for Sidekiq server logs

Michael Kozono requested to merge mk/customize-sidekiq-log-level into master

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.

  1. Add a env.runit file to the root directory of GDK
  2. Add a line export GITLAB_LOG_LEVEL=warn to the env.runit file
  3. gdk restart
  4. 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.

Merge request reports

Loading