From: Eduardo Ramos Testillano Date: Wed, 11 Oct 2017 12:08:01 +0000 (+0200) Subject: Convert to warning X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=commitdiff_plain;h=a8d544da1a0edc1910835d4c9f89f22f57103b9b Convert to warning Allow to test special cases --- diff --git a/source/diameter/codec/Avp.cpp b/source/diameter/codec/Avp.cpp index be51349..7b075cf 100644 --- a/source/diameter/codec/Avp.cpp +++ b/source/diameter/codec/Avp.cpp @@ -1425,9 +1425,11 @@ void Avp::fromXML(const anna::xml::Node* avpNode) throw(anna::RuntimeException) int i_aux = code->getIntegerValue(); if(i_aux < 0) { - std::string msg = "Error processing avp getValue(); - msg += "': negative values are not allowed"; - throw anna::RuntimeException(msg, ANNA_FILE_LOCATION); + LOGWARNING( + std::string msg = "Error processing avp getValue(); + msg += "': negative value read from xml"; + anna::Logger::warning(msg, ANNA_FILE_LOCATION); + ); } U24 u_code = i_aux;