X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FMyLocalServer.cpp;h=9346c5d5dc81222d9182c02bbeb4aee1319fec9d;hb=129500a50678c43ff28fb0054d6197899b8c0b2c;hp=5e3ca1ff89d742289976a9285cc425966355e03d;hpb=5f094136b1817b5c4d14dbcc33c9819a8569cd1e;p=anna.git diff --git a/example/diameter/launcher/MyLocalServer.cpp b/example/diameter/launcher/MyLocalServer.cpp index 5e3ca1f..9346c5d 100644 --- a/example/diameter/launcher/MyLocalServer.cpp +++ b/example/diameter/launcher/MyLocalServer.cpp @@ -90,7 +90,7 @@ throw(anna::RuntimeException) { } else return; // nothing done } - anna::diameter::codec::Engine *codecEngine = (anna::functions::component (ANNA_FILE_LOCATION)); + anna::diameter::codec::Engine *codecEngine = my_app.getCodecEngine(); anna::diameter::codec::Engine::ValidationMode::_v backupVM = codecEngine->getValidationMode(); if(!analysisOK) @@ -105,7 +105,6 @@ throw(anna::RuntimeException) { if(my_app.logEnabled()) my_app.writeLogFile(*answer_message, "sent2c", serverSession->asString()); } catch(anna::RuntimeException &ex) { ex.trace(); - if(my_app.logEnabled()) my_app.writeLogFile(*answer_message, "send2cError", serverSession->asString()); } @@ -180,7 +179,7 @@ throw(anna::RuntimeException) { anna::diameter::comm::ClientSession *usedClientSession = my_app.getMyDiameterEngine()->findClientSession(request->getRequestClientSessionKey()); std::string detail; - if(my_app.logEnabled()) detail = usedClientSession ? usedClientSession->asString() : ""; // esto no deberia ocurrir + if(my_app.logEnabled()) detail = usedClientSession ? usedClientSession->asString() : ""; // this should not happen try { anna::diameter::comm::Message *msg = my_app.createCommMessage(); @@ -200,7 +199,6 @@ throw(anna::RuntimeException) { if(my_app.logEnabled()) my_app.writeLogFile(*message, "fwd2e", detail); // forwarded } catch(anna::RuntimeException &ex) { ex.trace(); - if(my_app.logEnabled()) my_app.writeLogFile(*message, "fwd2eError", detail); // forwarded } }