mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
hsm: give it its own log, so it has unique prefix.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -40,6 +40,7 @@ void hsm_init(struct lightningd *ld, bool newdir)
|
||||
if (ld->hsm_fd < 0)
|
||||
err(1, "Could not subd hsm");
|
||||
|
||||
ld->hsm_log = new_log(ld, ld->log_book, "hsmd:");
|
||||
if (newdir)
|
||||
create = true;
|
||||
else
|
||||
|
||||
@@ -107,6 +107,7 @@ struct lightningd {
|
||||
|
||||
/* Bearer of all my secrets. */
|
||||
int hsm_fd;
|
||||
struct log *hsm_log;
|
||||
|
||||
/* Daemon looking after peers during init / before channel. */
|
||||
struct subd *gossip;
|
||||
|
||||
Reference in New Issue
Block a user