From 17e20bfa70d1a9ce5e6ee6687245e3e22f3633a8 Mon Sep 17 00:00:00 2001 From: "Sridhar K. N. Rao" Date: Wed, 1 Sep 2021 11:26:28 +0530 Subject: Clean Output Option. This patch adds support for clean output - displaying only final results. User has to run with --verbosity and level as error or critical. --verbosity is an existing option. Remove unnecessary spaces Signed-off-by: Sridhar K. N. Rao Change-Id: Id227a4b787c4c7e4dd97f28009946ac6a8a802d3 --- core/traffic_controller.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/traffic_controller.py') diff --git a/core/traffic_controller.py b/core/traffic_controller.py index 1f21e57d..2a5b0350 100644 --- a/core/traffic_controller.py +++ b/core/traffic_controller.py @@ -164,6 +164,8 @@ class TrafficController(object): for(key, value) in list(item.items()): logging.info(" Key: " + str(key) + ", Value: " + str(value)) + if settings.getValue('CLEAN_OUTPUT'): + print(str(key) + ", " + str(value)) def get_results(self): """IResult interface implementation. -- cgit 1.2.3-korg