Skip to content

Geo: there is no way to configure loglevel for all entries in geo.log

We have custom code (https://gitlab.com/gitlab-org/gitlab/blob/e2246dbd/ee/lib/gitlab/geo/log_cursor/daemon.rb#L14) to define a log level for the log cursor, but the cursor is only one of the actors generating data to geo.log. Sidekiq jobs also log to geo.log (https://gitlab.com/gitlab-org/gitlab-ee/blob/e2246dbd/ee/lib/gitlab/geo/logger.rb -> https://gitlab.com/gitlab-org/gitlab-ee/blob/e2246dbd/lib/gitlab/logger.rb).

cc @abuerer


We should be able to tame the log by using a similar log and defining the loglevel based on Rails.logger.level in ee/lib/gitlab/logger.rb

Edited by Michael Kozono