mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2546,3 +2546,16 @@ def test_notimestamp_logging(node_factory):
|
||||
assert l1.daemon.logs[0].startswith("DEBUG")
|
||||
|
||||
assert l1.rpc.listconfigs()['log-timestamps'] is False
|
||||
|
||||
|
||||
def test_getlog(node_factory):
|
||||
"""Test the getlog command"""
|
||||
l1 = node_factory.get_node(options={'log-level': 'io'})
|
||||
|
||||
# Default will skip some entries
|
||||
logs = l1.rpc.getlog()['log']
|
||||
assert [l for l in logs if l['type'] == 'SKIPPED'] != []
|
||||
|
||||
# This should not
|
||||
logs = l1.rpc.getlog(level='io')['log']
|
||||
assert [l for l in logs if l['type'] == 'SKIPPED'] == []
|
||||
|
||||
Reference in New Issue
Block a user