server avoid verbose Beacon tx errors

This commit is contained in:
Michael Davidsaver
2020-02-18 21:07:57 -08:00
parent 99ce43c0eb
commit adcac746ef
+4 -1
View File
@@ -525,7 +525,10 @@ void Server::Pvt::doBeacons(short evt)
if(ntx<0) {
int err = evutil_socket_geterror(beaconSender.sock);
log_warn_printf(serverio, "Beacon tx error (%d) %s\n",
auto lvl = Level::Warn;
if(err==EINTR || err==EPERM)
lvl = Level::Debug;
log_printf(serverio, lvl, "Beacon tx error (%d) %s\n",
err, evutil_socket_error_to_string(err));
} else if(unsigned(ntx)<pktlen) {