diff options
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/clean_logger.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/clean_logger.rb b/activesupport/lib/active_support/clean_logger.rb index d0de1188f0..07162f1d44 100644 --- a/activesupport/lib/active_support/clean_logger.rb +++ b/activesupport/lib/active_support/clean_logger.rb @@ -10,7 +10,14 @@ class Logger #:nodoc: end private - def format_message(severity, timestamp, msg, progname) - "#{msg}\n" + # Ruby 1.8.3 swapped the format_message params. + if RUBY_VERSION < '1.8.3' + def format_message(severity, timestamp, msg, progname) + "#{msg}\n" + end + else + def format_message(severity, timestamp, progname, msg) + "#{msg}\n" + end end -end
\ No newline at end of file +end |