post中间层信息增加错误信息日志

dev_trainings
daiao 6 years ago
parent fe2eab517b
commit 07e6182c7e

@ -1189,7 +1189,7 @@ module ApplicationHelper
rescue Exception => e
Rails.logger.error("post failed! #{e.message}")
# 增加错误栈信息
e.backtrace.each { |msg| Rails.logger.error(msg) }
e.backtrace.each { |msg| Rails.logger.error("post_backtrace: #{msg}") }
raise("实训云平台繁忙(繁忙等级:#{status}")
end
end

Loading…
Cancel
Save