]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Merge oauth branch at r17138 to trunk.
[rails.git] / app / controllers / application_controller.rb
index 6dbe9165ca2593b20f5fff3c7e6c46f7469016e6..c43271b93a81faf5b3426a75097ac5fc1053f0e5 100644 (file)
@@ -174,6 +174,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