daemon: always log error packets we create.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-06-29 06:49:21 +09:30
parent 5296b7f9a0
commit c1e1299249

View file

@ -430,6 +430,7 @@ Pkt *pkt_err(struct peer *peer, const char *msg, ...)
e->problem = tal_vfmt(e, msg, ap);
va_end(ap);
log_unusual(peer->log, "Sending PKT_ERROR: %s", e->problem);
return make_pkt(peer, PKT__PKT_ERROR, e);
}