From 786b2fe6e2363dc5af619526208583c61f18f70b Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 5 Feb 2016 02:53:56 +0100 Subject: [PATCH] Dont check validation on write log for sendxml operation --- example/diameter/launcher/testing/TestStep.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/example/diameter/launcher/testing/TestStep.cpp b/example/diameter/launcher/testing/TestStep.cpp index 810565b..d02d9b6 100644 --- a/example/diameter/launcher/testing/TestStep.cpp +++ b/example/diameter/launcher/testing/TestStep.cpp @@ -413,10 +413,12 @@ bool TestStepSendxml::do_execute() throw() { // Detailed log: if(a_originHost->logEnabled()) { - if (decodeMessage()) { + //if (decodeMessage()) { + // here we decode what we encoded on programming, then we could have a validation problem but not a decoding one: + decodeMessage(); std::string detail = usedClientSession ? usedClientSession->asString() : ""; // shouldn't happen a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2e" : "send2eError"), detail); - } + //} } } else if (getType() == Type::Sendxml2c) { @@ -447,10 +449,12 @@ bool TestStepSendxml::do_execute() throw() { // Detailed log: if(a_originHost->logEnabled()) { - if (decodeMessage()) { + //if (decodeMessage()) { + // here we decode what we encoded on programming, then we could have a validation problem but not a decoding one: + decodeMessage(); std::string detail = usedServerSession ? usedServerSession->asString() : ""; // shouldn't happen a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail); - } + //} } } -- 2.20.1