Mercurial > zeropaste
diff config/environments/production.rb @ 248:9d6f13168d25
Output log to stdout which will be captured by rack logger.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 10 Oct 2013 04:27:32 +0000 |
parents | d4cf49db9c49 |
children | d47274afe845 |
line wrap: on
line diff
--- a/config/environments/production.rb Thu Oct 10 04:25:07 2013 +0000 +++ b/config/environments/production.rb Thu Oct 10 04:27:32 2013 +0000 @@ -42,8 +42,15 @@ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true + # # Default logging formatter to keep PID and timestamp + config.log_formatter = Logger::Formatter.new + # Set to :debug to see everything in the log. - config.log_level = :info + config.log_level = :warn + config.logger = Logger.new(STDOUT) + + # Recommended by http://help.papertrailapp.com/kb/configuration/unicorn + config.logger.level = Logger.const_get('WARN') # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ]