MCPcopy Create free account
hub / github.com/apple/axlearn / FilterDiscoveryLogging

Class FilterDiscoveryLogging

axlearn/cloud/common/utils.py:29–35  ·  view source on GitHub ↗

Filters out noisy 'discovery' logging.

Source from the content-addressed store, hash-verified

27
28
29class FilterDiscoveryLogging(pylogging.Filter):
30 """Filters out noisy 'discovery' logging."""
31
32 def filter(self, record):
33 if record.levelno == 20:
34 return record.module != "discovery"
35 return True
36
37
38def configure_logging(level: int):

Callers 1

configure_loggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected