From fac8b5d28aa81f2233c7233b6876ad31d86be28b Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Fri, 12 Dec 2008 19:04:28 +0000 Subject: [PATCH] Log the request on a few requests when there is a bad request, probably should do this in a few more places. This makes it easier to see why we are getting errors/bad requests. --- app/controllers/way_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 5b0a632f7..80c75d91c 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -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 -- 2.39.5