Stop printing to stderr in lightning-net-tokio for disconnections
authorMatt Corallo <git@bluematt.me>
Tue, 17 Aug 2021 00:04:34 +0000 (00:04 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 17 Aug 2021 21:03:14 +0000 (21:03 +0000)
commitecf1d656ef4b48a155797e5825359ba2bb670d19
tree155d29ef86efd56796af29a936a66a076c586685
parent2e02aa7dab1228863b602b7db7b67d8bd7dbee9d
Stop printing to stderr in lightning-net-tokio for disconnections

It isn't exactly a critical error situation when we disconnect a
socket, so we shouldn't be printing to stderr, entirely bypassing
user logging, when it happens. We do still print to stderr if we
fail to write the first message to the socket, but this should
never happen unless the user has a reasonably-configured system
with at least one packet in bytes available for the socket buffer.
lightning-net-tokio/src/lib.rs