Test the getlog command
(node_factory)
| 3855 | |
| 3856 | |
| 3857 | def 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 | |
| 3868 | def test_getlog_no_io(node_factory): |