DEV: Include exception class in Discourse.warn_exception log ()

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:
David Taylor 2022-02-04 19:41:08 +00:00 committed by GitHub
parent c3a54eb30f
commit be8c0baa18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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