Improve. test|report operation output
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 27 Nov 2015 14:30:39 +0000 (15:30 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Fri, 27 Nov 2015 14:30:39 +0000 (15:30 +0100)
example/diameter/launcher/Launcher.cpp

index b2ee171..120fabc 100644 (file)
@@ -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);