Skip to content

Commit

Permalink
Shut up Rails from whining about not being able to log to Heroku's
Browse files Browse the repository at this point in the history
filesystem.
  • Loading branch information
jeady committed Oct 15, 2012
1 parent 22c5929 commit a035ed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
# config.threadsafe!

Migrator.offer_migration_when_available = true

config.logger = Logger.new(STDOUT)
config.logger.level = Logger.const_get(([ENV['LOG_LEVEL'].to_s.upcase, "INFO"] & %w[DEBUG INFO WARN ERROR FATAL UNKNOWN]).compact.first)
end

0 comments on commit a035ed9

Please sign in to comment.