diff options
| author | Luc Donnet | 2015-05-21 15:55:01 +0200 |
|---|---|---|
| committer | Luc Donnet | 2015-05-21 15:55:01 +0200 |
| commit | 797a169fe18ea931cd0cee24ccc1fb36a23c1d4d (patch) | |
| tree | e8466e6083a7b41d4a93d12ee5116c7cfa3af3ca | |
| parent | 0632361d27cc6fa9abbc7369fb4130f6c467e768 (diff) | |
| download | chouette-core-797a169fe18ea931cd0cee24ccc1fb36a23c1d4d.tar.bz2 | |
Fix SyslogLogger call in production.rb
| -rw-r--r-- | Gemfile | 2 | ||||
| -rw-r--r-- | config/environments/production.rb | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -149,7 +149,7 @@ group :test, :development do end group :production do - gem "SyslogLogger" + gem "SyslogLogger", :require => "syslog/logger" gem "daemons" end diff --git a/config/environments/production.rb b/config/environments/production.rb index d7e0733df..ec16019bf 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -37,13 +37,15 @@ Rails.application.configure do # config.force_ssl = true # Set to :debug to see everything in the log. - config.log_level = :info + # config.log_level = :info # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new("rails/chouette2").tap do |syslog| + syslog.level = Logger::INFO + end) # Use a different cache store in production. # config.cache_store = :mem_cache_store |
