diff options
author | Azul <azul@leap.se> | 2013-09-23 11:25:55 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-09-23 11:25:55 +0200 |
commit | 07a1dc526af800b68e9c1a5ccf8e0179fc417ced (patch) | |
tree | 8037a5e6c8bd56a6524276757f803508219743f6 | |
parent | 24e7562a622d563e0915f7a447a17872213ed7a3 (diff) |
hotfix: syslog now uses a different name
also make sure the gem > 2.0.0 so it actually IS called Syslog::Logger.
-rw-r--r-- | common_dependencies.rb | 2 | ||||
-rw-r--r-- | config/environments/production.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/common_dependencies.rb b/common_dependencies.rb index 9632893..6a43e26 100644 --- a/common_dependencies.rb +++ b/common_dependencies.rb @@ -20,5 +20,5 @@ group :test, :development do end group :production do - gem 'SyslogLogger' + gem 'SyslogLogger', '~> 2.0' end diff --git a/config/environments/production.rb b/config/environments/production.rb index 73e98e5..e34a4c9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -35,9 +35,10 @@ LeapWeb::Application.configure do # Use syslog if no file has been specified if APP_CONFIG[:logfile].blank? + require 'syslog/logger' # Prepend all log lines with the following tags config.log_tags = [ :leap, :webapp ] - config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new) end # Use a different cache store in production |