Remove lograge configuration from Docker image and production
This commit is contained in:
parent
4948fe50e3
commit
fdf3289f54
2 changed files with 6 additions and 17 deletions
|
|
@ -37,15 +37,6 @@ Rails.application.configure do
|
|||
config.log_tags = [:request_id]
|
||||
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
|
||||
|
||||
# Lograge - structured request logging
|
||||
config.lograge.enabled = true
|
||||
config.lograge.custom_options = lambda do |event|
|
||||
{
|
||||
request_id: event.payload[:request_id],
|
||||
user_id: event.payload[:user_id]
|
||||
}
|
||||
end
|
||||
|
||||
# Change to "debug" to log everything (including potentially personally-identifiable information!).
|
||||
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue