From 860b78b1a7790dfb71b13fc36183bca1ed79f55b Mon Sep 17 00:00:00 2001 From: Eugene K Date: Fri, 18 Dec 2020 11:21:26 -0500 Subject: [PATCH] log changing log level --- library/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/utils.c b/library/utils.c index 6317f432..7f9c349d 100644 --- a/library/utils.c +++ b/library/utils.c @@ -153,6 +153,11 @@ void ziti_log_set_level(int level) { } uv_mbed_set_debug(ziti_log_lvl, uv_mbed_logger); + if (logger) { + char msg[128]; + int len = snprintf(msg, sizeof(msg), "set log level: ziti_log_lvl=%d &ziti_log_lvl = %p", ziti_log_lvl, &ziti_log_lvl); + logger(INFO, "ziti_log_set_level", msg, len); + } } int ziti_log_level() {