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.
This commit is contained in:
parent
850bd333eb
commit
fac8b5d28a
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ class WayController < ApplicationController
|
||||||
render :nothing => true, :status => :method_not_allowed
|
render :nothing => true, :status => :method_not_allowed
|
||||||
end
|
end
|
||||||
rescue OSM::APIError => ex
|
rescue OSM::APIError => ex
|
||||||
|
logger.warn request.raw_post
|
||||||
render ex.render_opts
|
render ex.render_opts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -56,6 +57,7 @@ class WayController < ApplicationController
|
||||||
render :nothing => true, :status => :bad_request
|
render :nothing => true, :status => :bad_request
|
||||||
end
|
end
|
||||||
rescue OSM::APIError => ex
|
rescue OSM::APIError => ex
|
||||||
|
logger.warn request.raw_post
|
||||||
render ex.render_opts
|
render ex.render_opts
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render :nothing => true, :status => :not_found
|
render :nothing => true, :status => :not_found
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue