Dont check validation on write log for sendxml operation
[anna.git] / example / diameter / launcher / testing / TestStep.cpp
index 810565b..d02d9b6 100644 (file)
@@ -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() : "<null client session>"; // 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() : "<null server session>"; // shouldn't happen
           a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail);
-        }
+        //}
       }
     }