Skip to content

Commit

Permalink
This prevents the cron from logging the Sidekiq startup message
Browse files Browse the repository at this point in the history
This helps keep my inbox clean.
  • Loading branch information
jcoyne committed Feb 7, 2024
1 parent a86776d commit 88535d5
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 88535d5

Please sign in to comment.