diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 949d7f941f771b2792fe324795dc4da9e010dbc4..48bc59e98451ba7031647ccd8037113d65e73a15 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -52,6 +52,8 @@ def load_cron_jobs! config.error_handlers.delete(Sidekiq::Config::ERROR_HANDLER) end + config.logger.level = ENV.fetch("GITLAB_LOG_LEVEL", ::Logger::INFO) + Sidekiq.logger.info "Listening on queues #{config[:queues].uniq.sort}" # In Sidekiq 6.x, connection pools have a size of concurrency+5. diff --git a/doc/administration/logs/index.md b/doc/administration/logs/index.md index 9f72b45737a788a20c19ed2246e6950c87aa930e..5e1a85801c1baa8ddad06abe31b4d67d745a8048 100644 --- a/doc/administration/logs/index.md +++ b/doc/administration/logs/index.md @@ -67,7 +67,6 @@ Some of these services have their own environment variables to override the log | GitLab QA Runtime | `INFO` | `QA_LOG_LEVEL` | | Google APIs | `INFO` | | | Rack Timeout | `ERROR` | | -| Sidekiq (server) | `INFO` | | | Snowplow Tracker | `FATAL` | | | gRPC Client (Gitaly) | `WARN` | `GRPC_LOG_LEVEL` | | LLM | `INFO` | `LLM_DEBUG` |