Permalink
Browse files

Do not clean messages twice in SyslogLogger#add

  • Loading branch information...
1 parent 9f0a01c commit 9d2f0a757ef4512558023f557ece561b26215ec2 @methodmissing methodmissing committed Jan 5, 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 9d2f0a7

Please sign in to comment.