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

Function pretend_bad

tests/plugins/pretend_badlog.py:24–29  ·  view source on GitHub ↗

Log an specified level entry. And in plugin, we use 'warn'/'error' instead of 'unusual'/'broken'

(event, level, plugin)

Source from the content-addressed store, hash-verified

22
23@plugin.method("pretendbad")
24def pretend_bad(event, level, plugin):
25 """Log an specified level entry.
26 And in plugin, we use 'warn'/'error' instead of
27 'unusual'/'broken'
28 """
29 plugin.log("{}".format(event), level)
30
31
32plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected