Skip to content
Snippets Groups Projects
Commit e905ce0c authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

ice: output IceIOQueue error as debug than error

Some errors are "normal" in usual context, so do not
alert user with big red alert...

Refs #72111

Change-Id: I27f7f0b6d1dffc8f4029484ad30c5f786f21ccbb
(cherry picked from commit 42641a7a)
parent 38863d2a
No related branches found
No related tags found
No related merge requests found
...@@ -800,7 +800,12 @@ handleIOEvents(pj_ice_strans_cfg& cfg, unsigned max_msec) ...@@ -800,7 +800,12 @@ handleIOEvents(pj_ice_strans_cfg& cfg, unsigned max_msec)
// error // error
if (n_events < 0) { if (n_events < 0) {
RING_ERR("IceIOQueue: error %d", pj_get_netos_error()); const auto err = pj_get_os_error();
char err_msg[128];
pj_strerror(err, err_msg, sizeof(err_msg));
err_msg[sizeof(err_msg)-1] = '\0';
// Kept as debug as some errors are "normal" in regular context
RING_DBG("IceIOQueue: error %d - %s", err, err_msg);
std::this_thread::sleep_for(std::chrono::milliseconds(PJ_TIME_VAL_MSEC(timeout))); std::this_thread::sleep_for(std::chrono::milliseconds(PJ_TIME_VAL_MSEC(timeout)));
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment