DEV: Report the backtrace as well.

This commit is contained in:
Guo Xiang Tan 2018-10-10 17:43:27 +08:00
parent 0ea8c1943f
commit ae6a5419e0
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class Report
# given reports can be added by plugins we dont want dashboard failures
# on report computation, however we do want to log which report is provoking
# an error
Rails.logger.error("Error while computing report `#{report.type}`: #{e.message}")
Rails.logger.error("Error while computing report `#{report.type}`: #{e.message}\n#{e.backtrace.join("\n")}")
end
report