Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8532] Update crontab log level #8533

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading