Make peers sending gossip out of order logging less scary
authorMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 22:57:18 +0000 (22:57 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Feb 2024 23:06:38 +0000 (23:06 +0000)
commit96b141c5038b11e51697f09d2571aef858087a7f
tree78bd94b09cd4e3c5c635866829607c09328e7c7f
parent73da722d18af7b510711c405154d81c1c9458942
Make peers sending gossip out of order logging less scary

Multiple times we've had users wonder why they see `Error handling
message from.*; ignoring: Couldn't find channel for update` in
their logs and wonder if its related to their channel
force-closing. While this does indicate a peer is sending us gossip
our of order (and thus misbehaving), its not relevant to channel
operation and the logged message and level should indicate that.

Thus, here, we move the level to Gossip and add "gossip" between
"handling" and "message" (so it reads "Error handling gossip
message from.*").

Fixes #2471
lightning/src/ln/peer_handler.rs
lightning/src/routing/gossip.rs