aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/clean_logger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/clean_logger.rb')
-rw-r--r--activesupport/lib/active_support/clean_logger.rb2
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