MCPcopy Create free account
hub / github.com/ElementsProject/lightning / notify_warning

Function notify_warning

tests/plugins/pretend_badlog.py:15–20  ·  view source on GitHub ↗
(plugin, warning, **kwargs)

Source from the content-addressed store, hash-verified

13
14@plugin.subscribe("warning")
15def notify_warning(plugin, warning, **kwargs):
16 plugin.log("Received warning")
17 plugin.log("level: {}".format(warning['level']))
18 plugin.log("time: {}".format(warning['time']))
19 plugin.log("source: {}".format(warning['source']))
20 plugin.log("log: {}".format(warning['log']))
21
22
23@plugin.method("pretendbad")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected