Tweaked log levels

This commit is contained in:
SChernykh 2021-08-29 19:20:36 +02:00
parent ed390e8b7b
commit bb7720968f

View file

@ -430,10 +430,10 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::shutdown_tcp()
if (elapsed_time >= (counter + 1) * 1000) { if (elapsed_time >= (counter + 1) * 1000) {
++counter; ++counter;
if (counter < timeout_seconds) { if (counter < timeout_seconds) {
LOGINFO(5, "waiting for event loop to stop for " << (timeout_seconds - counter) << " more seconds..."); LOGINFO(1, "waiting for event loop to stop for " << (timeout_seconds - counter) << " more seconds...");
} }
else { else {
LOGWARN(5, "timed out while waiting for event loop to stop"); LOGWARN(1, "timed out while waiting for event loop to stop");
uv_async_init(&m_loop, &asy, nullptr); uv_async_init(&m_loop, &asy, nullptr);
uv_stop(&m_loop); uv_stop(&m_loop);
uv_async_send(&asy); uv_async_send(&asy);