Files
fm-orchestrator/module_build_service/log_workaround.py
Owen W. Taylor 192eefb641 Squash 'Cannot find qpid python module' warnings from Moksha
Importing moksha causes a 'Cannot find qpid python module' warning if
it's not installed, but we don't need the QPid support.
2022-04-25 12:26:06 -04:00

10 lines
228 B
Python

import logging
class QpidWarningFilter(logging.Filter):
def filter(self, record):
return "Cannot find qpid python module" not in record.getMessage()
logging.getLogger("moksha.hub").addFilter(QpidWarningFilter())