summaryrefslogtreecommitdiff
path: root/lib/logger/formatter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logger/formatter.rb')
-rw-r--r--lib/logger/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/logger/formatter.rb b/lib/logger/formatter.rb
index 206c35d9fa..852cffe033 100644
--- a/lib/logger/formatter.rb
+++ b/lib/logger/formatter.rb
@@ -27,7 +27,7 @@ class Logger
when ::String
msg
when ::Exception
- "#{ msg.message } (#{ msg.class })\n#{ (msg.backtrace || []).join("\n") }"
+ "#{ msg.message } (#{ msg.class })\n#{ msg.backtrace.join("\n") if msg.backtrace }"
else
msg.inspect
end