From a8d544da1a0edc1910835d4c9f89f22f57103b9b Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Wed, 11 Oct 2017 14:08:01 +0200 Subject: [PATCH] Convert to warning Allow to test special cases --- source/diameter/codec/Avp.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.20.1