forked from External/greenlight
Added parameter for log level (#2546)
* Added parameter for log level * Added fix for Rubocop + RSpec check and `RAILS_LOG_LEVEL` is now optionally. Default value/log level is `info`. * Set default log level from `info` to `debug` for RSpec check... * Update application.rb Moving it to config/environments/production.rb * Update production.rb * Update production.rb Forgot to change the default logging level again from `:debug` to :info` Co-authored-by: kaihen <>
This commit is contained in:
@ -125,6 +125,9 @@ Rails.application.configure do
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
# Specify the log level
|
||||
config.log_level = ENV["RAILS_LOG_LEVEL"].present? ? ENV['RAILS_LOG_LEVEL'].to_sym : :info
|
||||
|
||||
# Use Lograge for logging
|
||||
config.lograge.enabled = true
|
||||
|
||||
@ -141,8 +144,6 @@ Rails.application.configure do
|
||||
"#{time} - #{severity}: #{msg} \n"
|
||||
end
|
||||
|
||||
config.log_level = :info
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
config.log_tags = [:request_id, :remote_ip]
|
||||
|
||||
|
Reference in New Issue
Block a user