diff --git a/config/environments/production.rb b/config/environments/production.rb index 72511431..94a0c61e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -50,7 +50,7 @@ # Include generic and useful information about system operation, but avoid logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). - config.log_level = :info + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") # Prepend all log lines with the following tags. config.log_tags = [ :request_id ] diff --git a/config/schedule.rb b/config/schedule.rb index 332387bc..ece6c1c7 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -4,7 +4,7 @@ # http://en.wikipedia.org/wiki/Cron # Work-around for loading spring unless RAILS_ENV is actually defined... -job_type :runner, "cd :path && :environment_variable=:environment bin/rails runner -e :environment ':task' :output" +job_type :runner, "cd :path && RAILS_LOG_LEVEL=warn :environment_variable=:environment bin/rails runner -e :environment ':task' :output" # Example: #