From cf1d6959b2262da181a16521ff91c7e3fb4c15d8 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 27 Nov 2015 15:30:39 +0100 Subject: [PATCH] Improve. test|report operation output --- example/diameter/launcher/Launcher.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/example/diameter/launcher/Launcher.cpp b/example/diameter/launcher/Launcher.cpp index b2ee171..120fabc 100644 --- a/example/diameter/launcher/Launcher.cpp +++ b/example/diameter/launcher/Launcher.cpp @@ -1867,10 +1867,15 @@ void Launcher::eventOperation(const std::string &operation, std::string &respons testManager.setDumpFailedReports(enable); else if(param2 == "success") testManager.setDumpSuccessReports(enable); - else if(param2 == "all") + else if(param2 == "all") { + param2 = "any"; testManager.setDumpAllReports(enable); - else if(param2 == "none") - testManager.setDumpAllReports(!enable); + } + else if(param2 == "none") { + enable = !enable; + param2 = "any"; + testManager.setDumpAllReports(enable); + } else throw anna::RuntimeException("Wrong body content format on HTTP Request. Use 'help' management command to see more information.", ANNA_FILE_LOCATION); -- 2.20.1