Mercurial > rsstweet
comparison config/environments/production.rb @ 27:efc548be0a3a
Fix logging to stdout in production.
| author | edogawaconan <me@myconan.net> |
|---|---|
| date | Sat, 06 Sep 2014 00:08:18 +0900 |
| parents | a2f7dfc68f44 |
| children | 3f419d621b06 |
comparison
equal
deleted
inserted
replaced
| 26:a4deb8a43cc3 | 27:efc548be0a3a |
|---|---|
| 27 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx | 27 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx |
| 28 | 28 |
| 29 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. | 29 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. |
| 30 # config.force_ssl = true | 30 # config.force_ssl = true |
| 31 | 31 |
| 32 # Use default logging formatter so that PID and timestamp are not suppressed. | |
| 33 config.log_formatter = ::Logger::Formatter.new | |
| 34 | |
| 32 # Set to :debug to see everything in the log. | 35 # Set to :debug to see everything in the log. |
| 33 config.log_level = :info | 36 config.log_level = :warn |
| 37 config.logger = ::Logger.new(STDOUT) | |
| 38 | |
| 39 # Recommended by http://help.papertrailapp.com/kb/configuration/unicorn | |
| 40 config.logger.level = Logger.const_get("WARN") | |
| 34 | 41 |
| 35 # Prepend all log lines with the following tags. | 42 # Prepend all log lines with the following tags. |
| 36 # config.log_tags = [ :subdomain, :uuid ] | 43 # config.log_tags = [ :subdomain, :uuid ] |
| 37 | 44 |
| 38 # Use a different logger for distributed setups. | 45 # Use a different logger for distributed setups. |
| 55 # Send deprecation notices to registered listeners. | 62 # Send deprecation notices to registered listeners. |
| 56 config.active_support.deprecation = :notify | 63 config.active_support.deprecation = :notify |
| 57 | 64 |
| 58 # Disable automatic flushing of the log to improve performance. | 65 # Disable automatic flushing of the log to improve performance. |
| 59 # config.autoflush_log = false | 66 # config.autoflush_log = false |
| 60 | |
| 61 # Use default logging formatter so that PID and timestamp are not suppressed. | |
| 62 config.log_formatter = ::Logger::Formatter.new | |
| 63 end | 67 end |
