mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
lightningd: remember --log-file arg.
And fclose old ones if we get handed it multiple times. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
7fd5808803
commit
bd3480dc9c
@@ -56,6 +56,7 @@ static struct lightningd *new_lightningd(const tal_t *ctx,
|
||||
htlc_out_map_init(&ld->htlcs_out);
|
||||
ld->log_book = log_book;
|
||||
ld->log = new_log(log_book, log_book, "lightningd(%u):", (int)getpid());
|
||||
ld->logfile = NULL;
|
||||
ld->alias = NULL;
|
||||
ld->rgb = NULL;
|
||||
list_head_init(&ld->connects);
|
||||
|
||||
Reference in New Issue
Block a user