core-lightning/tests/plugins/log.py
Rusty Russell be2cbe784f pytest: test for filtering bug.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-08-06 14:37:49 +09:30

14 lines
249 B
Python
Executable File

#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.init()
def init(options, configuration, plugin):
plugin.log("printing debug log", level='debug')
plugin.log("printing info log", level='info')
plugin.run()