Permalink
Browse files

Merge pull request #3 from methodmissing/master

Do not clean messages twice in SyslogLogger#add
  • Loading branch information...
2 parents 9f0a01c + 9d2f0a7 commit e2efe344dcd21b4c541843139396ab968f073a80 @drbrain drbrain committed Mar 22, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/syslog_logger.rb
View
@@ -155,8 +155,7 @@ def initialize(program_name = 'rails')
def add(severity, message = nil, progname = nil, &block)
severity ||= Logger::UNKNOWN
return true if severity < @level
- message = clean(message || block.call)
- SYSLOG.send LEVEL_LOGGER_MAP[severity], clean(message)
+ SYSLOG.send LEVEL_LOGGER_MAP[severity], clean(message || block.call)
return true
end

0 comments on commit e2efe34

Please sign in to comment.