diff --git a/app/controllers/concerns/epp/common.rb b/app/controllers/concerns/epp/common.rb index 43f7fd52b..c7e138833 100644 --- a/app/controllers/concerns/epp/common.rb +++ b/app/controllers/concerns/epp/common.rb @@ -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, diff --git a/app/views/admin/epp_logs/show.haml b/app/views/admin/epp_logs/show.haml index 70ae49f9b..8a20b6bc0 100644 --- a/app/views/admin/epp_logs/show.haml +++ b/app/views/admin/epp_logs/show.haml @@ -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