Log actual sent xml

This commit is contained in:
Martin Lensment 2015-01-15 14:04:29 +02:00
parent 05b2863c8e
commit cf6ae27e3f
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ module Epp::Common
def write_to_epp_log
request_object = OBJECT_TYPES[params_hash['epp']['xmlns:ns2']] if params[:frame]
ApiLog::EppLog.create({
request: params[:frame],
request: params[:raw_frame],
request_command: params[:command],
request_successful: epp_errors.empty?,
request_object: request_object,

View file

@ -44,7 +44,7 @@
%pre
- formatted_req = Nokogiri::XML(@epp_log.request)
- if formatted_req.errors.none?
= formatted_req.root
= formatted_req
- else
= @epp_log.request
.col-md-6