Skip to content

Commit

Permalink
log changing log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Dec 18, 2020
1 parent 6275f8b commit 860b78b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 860b78b

Please sign in to comment.