]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Merge 17067 from trunk.
[rails.git] / app / controllers / application_controller.rb
index bcaed456590748d1e86c45ba04962ffbc1af1af7..e36c9842ba6c55eea2e652d453b60d16732bc86e 100644 (file)
@@ -193,6 +193,8 @@ class ApplicationController < ActionController::Base
     rescue OSM::APIError => ex
       report_error ex.message, ex.status
     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
     end
   end