From 2fd78362ad924bf4b382417100141c5135303e4b Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 24 Nov 2017 23:50:43 +0100 Subject: [PATCH] hsm: Log incoming client messages --- hsmd/hsm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hsmd/hsm.c b/hsmd/hsm.c index d322931d1..e2c6c85f0 100644 --- a/hsmd/hsm.c +++ b/hsmd/hsm.c @@ -222,6 +222,9 @@ static struct io_plan *handle_channeld(struct io_conn *conn, struct client *c = container_of(dc, struct client, dc); enum hsm_client_wire_type t = fromwire_peektype(dc->msg_in); + status_trace("Client: type %s len %zu", + hsm_client_wire_type_name(t), tal_count(dc->msg_in)); + switch (t) { case WIRE_HSM_ECDH_REQ: return handle_ecdh(conn, dc);