diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 18:25:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 18:25:30 +0000 |
commit | 05f173e2c2607e38cc4f86d53fbba8c832082208 (patch) | |
tree | c904b189e718ea5378b813b6651537bef1c87b9e /activesupport/lib | |
parent | 2a34e082f3262a9a934b8794737dab87b80d8fdd (diff) | |
download | rails-05f173e2c2607e38cc4f86d53fbba8c832082208.tar.gz rails-05f173e2c2607e38cc4f86d53fbba8c832082208.tar.bz2 rails-05f173e2c2607e38cc4f86d53fbba8c832082208.zip |
Added call to inspect on non-string classes for the logger (closes #8533) [codahale]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/clean_logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/clean_logger.rb b/activesupport/lib/active_support/clean_logger.rb index 7ce9faba48..95d4f07f4d 100644 --- a/activesupport/lib/active_support/clean_logger.rb +++ b/activesupport/lib/active_support/clean_logger.rb @@ -93,7 +93,7 @@ class Logger class SimpleFormatter < Logger::Formatter # This method is invoked when a log event occurs def call(severity, timestamp, progname, msg) - "#{msg}\n" + "#{String === msg ? msg : msg.inspect}\n" end end |