From: Eduardo Ramos Testillano Date: Wed, 8 Apr 2015 17:52:21 +0000 (+0200) Subject: Allow Debug level traces X-Git-Tag: REFACTORING_TESTING_LIBRARY~177 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=c2d9954484b92913d1289160efa6a9055cb9bdf1;p=anna.git Allow Debug level traces --- diff --git a/example/diameter/pcapDecoder/main.cpp b/example/diameter/pcapDecoder/main.cpp index d05a0e9..69c4f19 100644 --- a/example/diameter/pcapDecoder/main.cpp +++ b/example/diameter/pcapDecoder/main.cpp @@ -372,7 +372,8 @@ int main(int argc, char **argv) { bool no_validation = (optionals.find("--no-validation") != std::string::npos); bool ignore_flags = (optionals.find("--ignore-flags") != std::string::npos); - Logger::setLevel(Logger::Warning); + bool debug = (optionals.find("--debug") != std::string::npos); + Logger::setLevel(debug ? Logger::Debug:Logger::Warning); Logger::initialize(execBN.c_str(), new TraceWriter(filetrace.c_str(), 2048000)); G_codecEngine = new anna::diameter::codec::Engine(); anna::diameter::stack::Engine &stackEngine =