MCPcopy Create free account
hub / github.com/bloomberg/pystack / logWithPython

Function logWithPython

src/pystack/_pystack/logging.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void
19logWithPython(const std::string& message, int level)
20{
21 if (!LOGGER_INITIALIZED) {
22 throw std::runtime_error("Logger is not initialized");
23 }
24 if (!PyErr_Occurred()) {
25 log_with_python(&message, level);
26 }
27}
28
29} // namespace pystack

Callers 1

~LOGMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected