diff options
author | 2020-08-31 14:10:28 +0530 | |
---|---|---|
committer | 2020-09-05 12:22:51 +0200 | |
commit | 0a9f6805017efc45a0ebc0dc09e71a8e4e0526db (patch) | |
tree | 7c4a2c219cec2ad6a267974dce18aca8ba13d366 /xtesting | |
parent | 69a2e39d64eb93e7587d35fbc1cd4c62fa702b5b (diff) |
Suppress admin password in default logs
Currently, OS_PASSWORD is getting printed in the console of
Functest. This password is secret and must not be printed in
default log file.
This patch suppresses the logging of OS_PASSWORD unless
users ask for debug logs.
Signed-off-by: mahajanajay33@gmail.com
Change-Id: Ib83a12eb09a8551b30b352858649932a5ca842e4
(cherry picked from commit bbdc01c30dcf5a1365ad5a61ec0f7fee49b7fb59)
Diffstat (limited to 'xtesting')
-rw-r--r-- | xtesting/ci/logging.debug.ini | 2 | ||||
-rw-r--r-- | xtesting/ci/logging.ini | 2 | ||||
-rw-r--r-- | xtesting/ci/run_tests.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xtesting/ci/logging.debug.ini b/xtesting/ci/logging.debug.ini index 1c8d136a..eae8642b 100644 --- a/xtesting/ci/logging.debug.ini +++ b/xtesting/ci/logging.debug.ini @@ -45,7 +45,7 @@ args=(sys.stdout,) [handler_file] class=FileHandler -level=DEBUG +level=INFO formatter=standard args=("/var/lib/xtesting/results/xtesting.log",) diff --git a/xtesting/ci/logging.ini b/xtesting/ci/logging.ini index a63e406a..b12677f3 100644 --- a/xtesting/ci/logging.ini +++ b/xtesting/ci/logging.ini @@ -51,7 +51,7 @@ args=(sys.stdout,) [handler_file] class=FileHandler -level=DEBUG +level=INFO formatter=standard args=("/var/lib/xtesting/results/xtesting.log",) diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 0f43210c..f96bd885 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -110,7 +110,7 @@ class Runner(): value = re.sub(r'^["\' ]*|[ \'"]*$', '', "".join(var[1:])) os.environ[key] = value rcfd.seek(0, 0) - LOGGER.info("Sourcing env file %s\n\n%s", rc_file, rcfd.read()) + LOGGER.debug("Sourcing env file %s\n\n%s", rc_file, rcfd.read()) @staticmethod def get_dict_by_test(testname): |