Skip to content

Commit

Permalink
Merge pull request #337 from alphagov/sengi/loglevel
Browse files Browse the repository at this point in the history
Heed RAILS_LOG_LEVEL.
  • Loading branch information
sengi authored Jan 11, 2024
2 parents 280141c + a4b1240 commit c43dacb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }

config.log_level = ENV.fetch("RAILS_LOG_LEVEL", :info)

# Prepend all log lines with the following tags.
config.log_tags = [:request_id]

Expand Down
2 changes: 2 additions & 0 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
chain.add SidekiqUniqueJobs::Middleware::Server
end

config.logger.level = Rails.logger.level

SidekiqUniqueJobs::Server.configure(config)
end

Expand Down

0 comments on commit c43dacb

Please sign in to comment.