// 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) {
// 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);
- }
+ //}
}
}