mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Improve log message when receiving unknown message type
This commit is contained in:
parent
4e382ebd94
commit
fe670b9aaa
1 changed files with 2 additions and 2 deletions
|
@ -630,10 +630,10 @@ static struct io_plan *peer_msgin(struct io_conn *conn,
|
|||
* odd-numbered types without ascertaining that the recipient
|
||||
* understands it. */
|
||||
if (t & 1) {
|
||||
status_trace("Peer %s sent unknown packet %u, ignoring",
|
||||
status_trace("Peer %s sent packet with unknown message type %u, ignoring",
|
||||
type_to_string(trc, struct pubkey, &peer->id), t);
|
||||
} else
|
||||
peer_error(peer, "Unknown packet %u", t);
|
||||
peer_error(peer, "Packet with unknown message type %u", t);
|
||||
|
||||
return peer_next_in(conn, peer);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue