Skip to content

Commit

Permalink
Merge pull request #1032 from pod4lib/warn_log_on_cron
Browse files Browse the repository at this point in the history
This prevents the cron from logging the Sidekiq startup message
  • Loading branch information
corylown authored Feb 9, 2024
2 parents a86776d + 88535d5 commit c0808ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down
2 changes: 1 addition & 1 deletion config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down

0 comments on commit c0808ea

Please sign in to comment.