aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2015-05-21 15:55:01 +0200
committerLuc Donnet2015-05-21 15:55:01 +0200
commit797a169fe18ea931cd0cee24ccc1fb36a23c1d4d (patch)
treee8466e6083a7b41d4a93d12ee5116c7cfa3af3ca
parent0632361d27cc6fa9abbc7369fb4130f6c467e768 (diff)
downloadchouette-core-797a169fe18ea931cd0cee24ccc1fb36a23c1d4d.tar.bz2
Fix SyslogLogger call in production.rb
-rw-r--r--Gemfile2
-rw-r--r--config/environments/production.rb6
2 files changed, 5 insertions, 3 deletions
diff --git a/Gemfile b/Gemfile
index af18febf7..91d2ffebc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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