mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
log: add structure logging.
Uses a gcc extension (cast to union) for typechecking, but that can be removed for compilers which don't support it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -209,6 +209,5 @@ void secrets_init(struct lightningd_state *dstate)
|
||||
SECP256K1_EC_COMPRESSED))
|
||||
fatal("Invalid privkey");
|
||||
|
||||
log_info(dstate->base_log, "ID: ");
|
||||
log_add_hex(dstate->base_log, dstate->id.der, sizeof(dstate->id.der));
|
||||
log_info_struct(dstate->base_log, "ID: %s", struct pubkey, &dstate->id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user