mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
lightningd: clean up logging initializations.
Rather than initializating the "print_level" field on first use, we can do it in logging_options_parsed(), now we have a linked list of them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2967,7 +2967,7 @@ def test_notimestamp_logging(node_factory):
|
||||
# Make sure this is specified *before* other options!
|
||||
l1.daemon.early_opts = ['--log-timestamps=false']
|
||||
l1.start()
|
||||
assert l1.daemon.logs[0].startswith("DEBUG")
|
||||
assert l1.daemon.logs[0].startswith("lightningd-1 DEBUG")
|
||||
|
||||
assert l1.rpc.listconfigs()['configs']['log-timestamps']['value_bool'] is False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user