mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Include exception class in Discourse.warn_exception log (#15822)
Sometimes, the 'message' portion of an exception isn't enough to work out what's happening. In these cases, including the exception class name can help with debugging.
This commit is contained in:
parent
c3a54eb30f
commit
be8c0baa18
|
@ -835,7 +835,7 @@ module Discourse
|
|||
# logster
|
||||
Rails.logger.add_with_opts(
|
||||
::Logger::Severity::WARN,
|
||||
"#{message} : #{e}",
|
||||
"#{message} : #{e.class.name} : #{e}",
|
||||
"discourse-exception",
|
||||
backtrace: e.backtrace.join("\n"),
|
||||
env: env
|
||||
|
|
Loading…
Reference in New Issue
Block a user