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:
Rusty Russell
2018-02-05 14:39:27 +10:30
parent 84bf60f934
commit ad401f3a1c
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ void hsm_init(struct lightningd *ld, bool newdir)
if (ld->hsm_fd < 0) if (ld->hsm_fd < 0)
err(1, "Could not subd hsm"); err(1, "Could not subd hsm");
ld->hsm_log = new_log(ld, ld->log_book, "hsmd:");
if (newdir) if (newdir)
create = true; create = true;
else else

View File

@@ -107,6 +107,7 @@ struct lightningd {
/* Bearer of all my secrets. */ /* Bearer of all my secrets. */
int hsm_fd; int hsm_fd;
struct log *hsm_log;
/* Daemon looking after peers during init / before channel. */ /* Daemon looking after peers during init / before channel. */
struct subd *gossip; struct subd *gossip;