From e905ce0c617ae6d29ca987cd0818bfd6912b0ed3 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Mon, 4 May 2015 15:51:20 -0400 Subject: [PATCH] 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 42641a7ab01994193a775737432c7daec5922066) --- src/ice_transport.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ice_transport.cpp b/src/ice_transport.cpp index 80b08360cc..346e11e27f 100644 --- a/src/ice_transport.cpp +++ b/src/ice_transport.cpp @@ -800,7 +800,12 @@ handleIOEvents(pj_ice_strans_cfg& cfg, unsigned max_msec) // error 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))); return; } -- GitLab