mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
daemon: always log error packets we create.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -430,6 +430,7 @@ Pkt *pkt_err(struct peer *peer, const char *msg, ...)
|
|||||||
e->problem = tal_vfmt(e, msg, ap);
|
e->problem = tal_vfmt(e, msg, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
log_unusual(peer->log, "Sending PKT_ERROR: %s", e->problem);
|
||||||
return make_pkt(peer, PKT__PKT_ERROR, e);
|
return make_pkt(peer, PKT__PKT_ERROR, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user