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)
[handler_file]
class=FileHandler
-level=DEBUG
+level=INFO
formatter=standard
args=("/var/lib/xtesting/results/xtesting.log",)
[handler_file]
class=FileHandler
-level=DEBUG
+level=INFO
formatter=standard
args=("/var/lib/xtesting/results/xtesting.log",)
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):