Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created June 12, 2012 21:50
Show Gist options
  • Save jamiew/2920348 to your computer and use it in GitHub Desktop.
Save jamiew/2920348 to your computer and use it in GitHub Desktop.
# config/environments/production.rb
# We're on Heroku, just output straight to STDOUT
# This is required because we're using Unicorn, too: 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')
@rdetert
Copy link

rdetert commented May 20, 2013

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment