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

Method __init__

src/pybind/mgr/mgr_module.py:889–901  ·  view source on GitHub ↗
(self, module_name: str, capsule: Any)

Source from the content-addressed store, hash-verified

887 """
888
889 def __init__(self, module_name: str, capsule: Any):
890 super(MgrStandbyModule, self).__init__(capsule)
891 self.module_name = module_name
892
893 # mock does not return a str
894 mgr_level = cast(str, self.get_ceph_option("debug_mgr"))
895 log_level = cast(str, self.get_module_option("log_level"))
896 cluster_level = cast(str, self.get_module_option('log_to_cluster_level'))
897 self._configure_logging(mgr_level, log_level, cluster_level,
898 False, False)
899
900 # for backwards compatibility
901 self._logger = self.getLogger()
902
903 @classmethod
904 @no_type_check

Callers

nothing calls this directly

Calls 5

get_ceph_optionMethod · 0.95
get_module_optionMethod · 0.95
_configure_loggingMethod · 0.80
getLoggerMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected