Skip to content

Commit

Permalink
Merge branch '8532-update-cron-log-level' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Jan 15, 2025
2 parents beb0c00 + 546e6a7 commit ea7d0b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions config/crontab-example
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ PATH=/home/<%= user %>/.gem/ruby/<%= ruby_version %>/bin:/usr/local/bin:/usr/bin
<% end %>

MAILTO=<%= mailto %>
RAILS_LOG_LEVEL=warn

# Every 5 minutes
*/5 * * * * <%= user %> <%= vhost_dir %>/<%= vcspath %>/commonlib/bin/run-with-lockfile.sh -n <%= vhost_dir %>/change-xapian-database.lock "<%= vhost_dir %>/<%= vcspath %>/script/update-xapian-index verbose=true" >> <%= vhost_dir %>/<%= vcspath %>/log/update-xapian-index.log || echo "stalled?"
Expand Down
6 changes: 3 additions & 3 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
Rails.root.join('spec', 'mailers', 'previews')
]

# Set LOG_LEVEL in the environment to a valid log level to temporarily run the
# application with a non-default setting.
config.log_level = ENV.fetch('LOG_LEVEL', :debug)
# Set RAILS_LOG_LEVEL in the environment to a valid log level to temporarily
# run the application with a non-default setting.
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', :debug)

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down
6 changes: 3 additions & 3 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new

# Set LOG_LEVEL in the environment to a valid log level to temporarily run the
# application with a non-default setting.
config.log_level = ENV.fetch('LOG_LEVEL', :info)
# Set RAILS_LOG_LEVEL in the environment to a valid log level to temporarily
# run the application with a non-default setting.
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', :info)

# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
Expand Down

0 comments on commit ea7d0b5

Please sign in to comment.