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:
Rusty Russell
2022-07-08 19:25:11 +09:30
parent ae49545875
commit 68b45c2ae0

View File

@@ -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 = []