Merge 17067 from trunk.
This commit is contained in:
commit
20a861392e
1 changed files with 2 additions and 0 deletions
|
@ -193,6 +193,8 @@ class ApplicationController < ActionController::Base
|
||||||
rescue OSM::APIError => ex
|
rescue OSM::APIError => ex
|
||||||
report_error ex.message, ex.status
|
report_error ex.message, ex.status
|
||||||
rescue Exception => ex
|
rescue Exception => ex
|
||||||
|
logger.info("API threw unexpected #{ex.class} exception: #{ex.message}")
|
||||||
|
ex.backtrace.each { |l| logger.info(l) }
|
||||||
report_error "#{ex.class}: #{ex.message}", :internal_server_error
|
report_error "#{ex.class}: #{ex.message}", :internal_server_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue