udp_set_buf: print set value anyways

It is better to display the value unconditionally (in verbose), because
even the positive feedback, that set correctly, may be useful.
This commit is contained in:
Martin Pulec
2023-11-14 11:33:22 +01:00
parent 84aab9aff0
commit be72d17dc2

View File

@@ -1466,7 +1466,7 @@ udp_set_buf(socket_udp *s, int sockopt, int size)
}
const bool ret = opt >= size;
log_msg(ret ? LOG_LEVEL_DEBUG : LOG_LEVEL_VERBOSE,
log_msg(LOG_LEVEL_VERBOSE,
"Socket %s buffer size set to %d B%srequested %d B%s\n",
sockopt == SO_RCVBUF ? "recv" : "send", opt,
ret ? " (" : ", ", size, ret ? ")" : "!");