1.1 --- a/src/logging.c Fri May 11 18:46:31 2018 +0200 1.2 +++ b/src/logging.c Fri May 11 19:48:19 2018 +0200 1.3 @@ -50,6 +50,8 @@ 1.4 ucx_map_int_put(logger->levels, l, (void*) "[WARNING]"); 1.5 l = UCX_LOGGER_INFO; 1.6 ucx_map_int_put(logger->levels, l, (void*) "[INFO]"); 1.7 + l = UCX_LOGGER_DEBUG; 1.8 + ucx_map_int_put(logger->levels, l, (void*) "[DEBUG]"); 1.9 l = UCX_LOGGER_TRACE; 1.10 ucx_map_int_put(logger->levels, l, (void*) "[TRACE]"); 1.11 } 1.12 @@ -75,6 +77,9 @@ 1.13 1.14 if ((logger->mask & UCX_LOGGER_LEVEL) > 0) { 1.15 text = (char*) ucx_map_int_get(logger->levels, level); 1.16 + if (!text) { 1.17 + text = "[UNKNOWN]"; 1.18 + } 1.19 n = strlen(text); 1.20 n = n > 256 ? 256 : n; 1.21 memcpy(msg+k, text, n);