mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
log: add easy way to log hex blobs.
Use it in one case, and also fix another logging FIXME. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -495,8 +495,9 @@ static struct io_plan *keys_exchanged(struct io_conn *conn,
|
||||
neg->their_sessionpubkey,
|
||||
sizeof(neg->their_sessionpubkey),
|
||||
&sessionkey)) {
|
||||
/* FIXME: Dump key in this case. */
|
||||
log_unusual(neg->log, "Bad sessionkey");
|
||||
log_unusual_blob(neg->log, "Bad sessionkey %s",
|
||||
neg->their_sessionpubkey,
|
||||
sizeof(neg->their_sessionpubkey));
|
||||
return io_close(conn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user