Permalink
Browse files

Shut up Rails from whining about not being able to log to Heroku's

filesystem.
  • Loading branch information...
1 parent 22c5929 commit a035ed937bdcddd2d28800d818677a6450eec698 @jeady jeady committed Oct 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 config/environments/production.rb
@@ -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.