MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / success

Method success

MCSL2Lib/ProgramControllers/logController.py:85–93  ·  view source on GitHub ↗
(self, msg: str)

Source from the content-addressed store, hash-verified

83 self.logger.warning(self._template(caller_info, msg))
84
85 def success(self, msg: str):
86 frame = getframeinfo(currentframe().f_back)
87 caller_info = {
88 "module": getmodulename(frame.filename),
89 "filename": frame.filename,
90 "line": frame.lineno,
91 "function": frame.function,
92 }
93 self.logger.success(self._template(caller_info, msg))
94
95 def error(self, exc: Optional[Exception] = None, msg: Optional[str] = ""):
96 frame = getframeinfo(currentframe().f_back)

Calls 1

_templateMethod · 0.95

Tested by

no test coverage detected