Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created March 28, 2012 15:25
Show Gist options
  • Select an option

  • Save jamiew/2227268 to your computer and use it in GitHub Desktop.

Select an option

Save jamiew/2227268 to your computer and use it in GitHub Desktop.

Revisions

  1. jamiew created this gist Mar 28, 2012.
    6 changes: 6 additions & 0 deletions heroku_unicorn_logger_fix.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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')