ffnord / mesh-announce

Discussion at #mesh-announce:irc.hackint.org and (separately) at
https://matrix.to/#/!MjLIHcALOcENXZWQlH:irc.hackint.org/$1547640760901FmKaD:matrix.eclabs.de
13 stars 45 forks source link

Write less log spam if host is unreachable. #91

Open moridius opened 7 months ago

moridius commented 7 months ago

If a network host is unreachable for respondd it now writes a one-line error message instead of several lines of stacktrace.

jplitza commented 1 month ago

I'd suggest a message like "Address unreachable while sending response to {address}". IMO it's easier to understand and easier to produce (since I don't like poking around stack frames).

Also, please use errno.ENETUNREACH instead of 101 as a magic number.