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

Function test_getlog

tests/test_misc.py:3857–3865  ·  view source on GitHub ↗

Test the getlog command

(node_factory)

Source from the content-addressed store, hash-verified

3855
3856
3857def test_getlog(node_factory):
3858 """Test the getlog command"""
3859 l1 = node_factory.get_node(options={'log-level': 'io'})
3860
3861 logs = l1.rpc.getlog()['log']
3862 assert [l for l in logs if l['type'] not in ("BROKEN", "UNUSUAL", "INFO")] == []
3863
3864 logs = l1.rpc.getlog(level='trace')['log']
3865 assert [l for l in logs if l['type'] not in ("BROKEN", "UNUSUAL", "INFO", "DEBUG", "TRACE")] == []
3866
3867
3868def test_getlog_no_io(node_factory):

Callers

nothing calls this directly

Calls 2

getlogMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected