lib/restfulness/response.rb in restfulness-0.2.2 vs lib/restfulness/response.rb in restfulness-0.2.3
- old
+ new
@@ -91,16 +91,16 @@
dur = @log_begin_at ? Time.now - @log_begin_at : 0.0
uri = request.uri
resource_name = resource ? resource.class.to_s : 'Error'
# We're only interested in parsed parameters.
- params = request.instance_variable_get(:@params)
+ params = request.sanitized_params
msg = %{%s "%s %s%s" %s %d %s %s %0.4fs %s} % [
request.remote_ip,
request.action.to_s.upcase,
uri.path,
- uri.query ? "?#{uri.query}" : '',
+ uri.query ? "?#{request.sanitized_query_string}" : '',
resource_name,
status.to_s[0..3],
STATUSES[status],
content_length,
dur,