Python libraries being used by framework does not get sent to dev/null.
JIRA: FUNCTEST-658
The parent logger is being set to logging.WARN and this is the logger instance
that is being inherited by the upstream libraries.
Change-Id: I35a02a8ea075012ac21e3b5d12d27c0187057b90
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
ch.setFormatter(formatter)
if CI_DEBUG is not None and CI_DEBUG.lower() == "true":
ch.setLevel(logging.DEBUG)
+ self.logger.parent.level = logging.DEBUG
else:
ch.setLevel(logging.INFO)
+ self.logger.parent.level = logging.INFO
self.logger.addHandler(ch)
hdlr = logging.FileHandler('/home/opnfv/functest/results/functest.log')