Skip to content

Commit

Permalink
Resque log level now matches Rails log level
Browse files Browse the repository at this point in the history
  • Loading branch information
elohanlon committed Dec 24, 2024
1 parent 2f4521b commit de50732
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# Set to :debug to see everything in the log.
config.log_level = :debug

# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# Set resque to log to a file
Resque.logger = Logger.new(Rails.root.join('log', "#{Rails.env}_resque.log"))
Resque.logger.level = Logger::INFO
# Match the Rails logger level
Resque.logger.level = Rails.logger.level

redis_config = Rails.application.config_for(:redis)

Expand Down

0 comments on commit de50732

Please sign in to comment.