keeguon-actionwebservice 3.0.17.1 → 3.0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,18 +63,18 @@ module ActionWebService # :nodoc:
|
|
63
63
|
end
|
64
64
|
log_request(ws_request, request.raw_post)
|
65
65
|
if exception
|
66
|
-
Rails.logger.warn(exception) unless logger.nil?
|
66
|
+
Rails.logger.warn(exception) unless Rails.logger.nil?
|
67
67
|
send_web_service_error_response(ws_request, exception)
|
68
68
|
else
|
69
69
|
send_web_service_response(ws_response, bm.real)
|
70
70
|
end
|
71
71
|
else
|
72
72
|
exception ||= DispatcherError.new("Malformed SOAP or XML-RPC protocol message")
|
73
|
-
Rails.logger.warn(exception) unless logger.nil?
|
73
|
+
Rails.logger.warn(exception) unless Rails.logger.nil?
|
74
74
|
send_web_service_error_response(ws_request, exception)
|
75
75
|
end
|
76
76
|
rescue Exception => e
|
77
|
-
Rails.logger.warn(e) unless logger.nil?
|
77
|
+
Rails.logger.warn(e) unless Rails.logger.nil?
|
78
78
|
send_web_service_error_response(ws_request, e)
|
79
79
|
end
|
80
80
|
|
@@ -114,7 +114,7 @@ module ActionWebService # :nodoc:
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def log_request(ws_request, body)
|
117
|
-
unless logger.nil?
|
117
|
+
unless Rails.logger.nil?
|
118
118
|
name = ws_request.method_name
|
119
119
|
api_method = ws_request.api_method
|
120
120
|
params = ws_request.method_params
|
@@ -124,16 +124,16 @@ module ActionWebService # :nodoc:
|
|
124
124
|
params = params.map{ |param| param.inspect }
|
125
125
|
end
|
126
126
|
service = ws_request.service_name
|
127
|
-
logger.debug("\nWeb Service Request: #{name}(#{params.join(", ")}) Entrypoint: #{service}")
|
128
|
-
logger.debug(indent(body))
|
127
|
+
Rails.logger.debug("\nWeb Service Request: #{name}(#{params.join(", ")}) Entrypoint: #{service}")
|
128
|
+
Rails.logger.debug(indent(body))
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
132
|
def log_response(ws_response, elapsed=nil)
|
133
|
-
unless logger.nil?
|
133
|
+
unless Rails.logger.nil?
|
134
134
|
elapsed = (elapsed ? " (%f):" % elapsed : ":")
|
135
|
-
logger.debug("\nWeb Service Response" + elapsed + " => #{ws_response.return_value.inspect}")
|
136
|
-
logger.debug(indent(ws_response.body))
|
135
|
+
Rails.logger.debug("\nWeb Service Response" + elapsed + " => #{ws_response.return_value.inspect}")
|
136
|
+
Rails.logger.debug(indent(ws_response.body))
|
137
137
|
end
|
138
138
|
end
|
139
139
|
|
@@ -155,7 +155,7 @@ module ActionWebService # :nodoc:
|
|
155
155
|
options = { :type => 'text/xml', :disposition => 'inline' }
|
156
156
|
send_data(to_wsdl, options)
|
157
157
|
rescue Exception => e
|
158
|
-
Rails.logger.warn(e) unless logger.nil?
|
158
|
+
Rails.logger.warn(e) unless Rails.logger.nil?
|
159
159
|
end
|
160
160
|
elsif request.post?
|
161
161
|
render :status => 500, :text => 'POST not supported'
|