MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

src/pybind/mgr/mgr_module.py:689–693  ·  view source on GitHub ↗
(self, module_inst: Any)

Source from the content-addressed store, hash-verified

687
688class CPlusPlusHandler(logging.Handler):
689 def __init__(self, module_inst: Any):
690 super(CPlusPlusHandler, self).__init__()
691 self._module = module_inst
692 self.setFormatter(logging.Formatter("[{} %(levelname)-4s %(name)s] %(message)s"
693 .format(module_inst.module_name)))
694
695 def emit(self, record: logging.LogRecord) -> None:
696 if record.levelno >= self.level:

Callers

nothing calls this directly

Calls 3

FormatterMethod · 0.80
__init__Method · 0.45
formatMethod · 0.45

Tested by

no test coverage detected