Start a minimal plugin and ensure it logs all levels
(node_factory)
| 114 | |
| 115 | |
| 116 | def test_plugin_log_levels(node_factory): |
| 117 | """Start a minimal plugin and ensure it logs all levels""" |
| 118 | bin_path = Path.cwd() / "target" / RUST_PROFILE / "examples" / "cln-plugin-startup" |
| 119 | l1 = node_factory.get_node( |
| 120 | options={"plugin": str(bin_path)}, broken_log=r"log::error! working" |
| 121 | ) |
| 122 | l1.rpc.test_log_levels() |
| 123 | wait_for(lambda: l1.daemon.is_in_log(r"cln-plugin-startup: log::trace! working")) |
| 124 | wait_for(lambda: l1.daemon.is_in_log(r"cln-plugin-startup: log::debug! working")) |
| 125 | wait_for(lambda: l1.daemon.is_in_log(r"cln-plugin-startup: log::info! working")) |
| 126 | wait_for(lambda: l1.daemon.is_in_log(r"cln-plugin-startup: log::warn! working")) |
| 127 | wait_for(lambda: l1.daemon.is_in_log(r"cln-plugin-startup: log::error! working")) |
| 128 | |
| 129 | |
| 130 | def test_grpc_connect(node_factory): |