mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd/log: prefix log messages with level.
In particular, this lets us spot UNUSUAL and BROKEN messages easily. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -454,7 +454,7 @@ def test_warning_notification(node_factory):
|
||||
# 2. test 'error' level, steps like above
|
||||
event = "Test warning notification(for broken event)"
|
||||
l1.rpc.call('pretendbad', {'event': event, 'level': 'error'})
|
||||
l1.daemon.wait_for_log('plugin-pretend_badlog.py Test warning notification\\(for broken event\\)')
|
||||
l1.daemon.wait_for_log(r'\*\*BROKEN\*\* plugin-pretend_badlog.py Test warning notification\(for broken event\)')
|
||||
|
||||
l1.daemon.wait_for_log('plugin-pretend_badlog.py Received warning')
|
||||
l1.daemon.wait_for_log('plugin-pretend_badlog.py level: error')
|
||||
|
||||
Reference in New Issue
Block a user