Skip to content

Commit

Permalink
[test] log level
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchipwanges committed Feb 6, 2024
1 parent e1dd80f commit f5ace21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/supplemental/nanolib/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ set_log_level(conf_log *log)
int rv = log_level_num(level);
if (-1 != rv) {
log->level = rv;
printf("\nset_log_level %d\n", rv);
}
}
nng_strfree(level);
Expand Down
1 change: 1 addition & 0 deletions src/supplemental/tls/mbedtls/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ nng_tls_engine_init_mbed(void)
log_level = 4;
}
log_debug("*** mxchip set mbedtls log level: %d (from nanomq).", log_level);
printf("\n*** mxchip set mbedtls log level: %d (from nanomq).\n", log_level);
mbedtls_debug_set_threshold(log_level);
#else
// Uncomment the following to have noisy debug from mbedTLS.
Expand Down

0 comments on commit f5ace21

Please sign in to comment.