MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / log_system_event

Method log_system_event

app/runtime_logging.py:206–228  ·  view source on GitHub ↗
(
        self,
        *,
        stage: str,
        status: str,
        message: str,
        details: dict[str, Any] | None = None,
        level: int = logging.INFO,
    )

Source from the content-addressed store, hash-verified

204 )
205
206 def log_system_event(
207 self,
208 *,
209 stage: str,
210 status: str,
211 message: str,
212 details: dict[str, Any] | None = None,
213 level: int = logging.INFO,
214 ) -> None:
215 entry = self._base_entry(
216 stage=stage,
217 status=status,
218 message=message,
219 account_id="system",
220 run_id=self._make_run_id(prefix="sys"),
221 action="system",
222 source="server",
223 product_id="",
224 pay_type="",
225 details=details,
226 )
227 self._write_entry(entry)
228 self.logger.log(level, "[system][%s] %s", stage, message)
229
230 def _base_entry(
231 self,

Callers 8

handle_aegisflow_errorFunction · 0.80
handle_unexpected_errorFunction · 0.80
start_schedulerFunction · 0.80
_bootstrap_proxy_poolFunction · 0.80
stop_schedulerFunction · 0.80
startMethod · 0.80
stopMethod · 0.80
_run_loopMethod · 0.80

Calls 3

_base_entryMethod · 0.95
_make_run_idMethod · 0.95
_write_entryMethod · 0.95

Tested by

no test coverage detected