]> git.openstreetmap.org Git - rails.git/commitdiff
Log the request on a few requests when there is a bad request, probably should do...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 12 Dec 2008 19:04:28 +0000 (19:04 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 12 Dec 2008 19:04:28 +0000 (19:04 +0000)
app/controllers/way_controller.rb

index 5b0a632f75091a37bef05e2e95e6272351027da3..80c75d91c3644d4c72fb04c8ea8758687217fa5a 100644 (file)
@@ -22,6 +22,7 @@ class WayController < ApplicationController
         render :nothing => true, :status => :method_not_allowed
       end
     rescue OSM::APIError => ex
+      logger.warn request.raw_post
       render ex.render_opts
     end
   end
@@ -56,6 +57,7 @@ class WayController < ApplicationController
         render :nothing => true, :status => :bad_request
       end
     rescue OSM::APIError => ex
+      logger.warn request.raw_post
       render ex.render_opts
     rescue ActiveRecord::RecordNotFound
       render :nothing => true, :status => :not_found