mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
pytest: restore prefix to logging.
Since we now log directly, we don't prepend the prefix ourselves, making it really hard to tell *which* lightningd the log applies to! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -581,6 +581,7 @@ class LightningD(TailableProc):
|
||||
self.prefix = 'lightningd-%d' % (node_id)
|
||||
# Log to stdout so we see it in failure cases, and log file for TailableProc.
|
||||
self.opts['log-file'] = ['-', os.path.join(lightning_dir, "log")]
|
||||
self.opts['log-prefix'] = self.prefix + ' '
|
||||
# In case you want specific ordering!
|
||||
self.early_opts = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user