-
-
Save ericdagenais/4095626 to your computer and use it in GitHub Desktop.
Fix Heroku cedar app logging with Rails 3.1 and Unicorn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/environments/production.rb | |
# We're on Heroku, just output straight to STDOUT | |
# This is required because we're using Unicorn: https://github.com/ryanb/cancan/issues/511#issuecomment-3643266 | |
config.logger = Logger.new(STDOUT) | |
config.logger.level = Logger.const_get(ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'INFO') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment