diff --git a/lightningd/hsm_control.c b/lightningd/hsm_control.c index 3c9a2f0e6..b76454e97 100644 --- a/lightningd/hsm_control.c +++ b/lightningd/hsm_control.c @@ -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 diff --git a/lightningd/lightningd.h b/lightningd/lightningd.h index 86d5a065e..478477bce 100644 --- a/lightningd/lightningd.h +++ b/lightningd/lightningd.h @@ -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;