mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-02 20:59:06 +08:00
Importing moksha causes a 'Cannot find qpid python module' warning if it's not installed, but we don't need the QPid support.
10 lines
228 B
Python
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())
|