]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: log all errors received by RoutineReceiveIncoming
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 27 Apr 2021 17:15:15 +0000 (10:15 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 May 2021 09:22:13 +0000 (11:22 +0200)
commit60a26371f42f5c0a9ce1ffb2b85b739d80085f2a
tree1f9dd19ce7c2e83d1692b64836e0992306c1ccc1
parenta544776d703df47974fe83e6a63e91c3ffc62500
device: log all errors received by RoutineReceiveIncoming

When debugging, it's useful to know why a receive func exited.

We were already logging that, but only in the "death spiral" case.
Move the logging up, to capture it always.
Reduce the verbosity, since it is not an error case any more.
Put the receive func name in the log line.

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
device/receive.go