Decrese debug verbosity

This commit is contained in:
Sergey Lyubka
2022-01-19 18:15:47 +00:00
parent 226917e1cd
commit 1a8e3c2e31
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -2502,7 +2502,7 @@ static void mqtt_cb(struct mg_connection *c, int ev, void *ev_data,
case MQTT_CMD_CONNACK:
mg_call(c, MG_EV_MQTT_OPEN, &mm.ack);
if (mm.ack == 0) {
LOG(LL_INFO, ("%lu Connected", c->id));
LOG(LL_DEBUG, ("%lu Connected", c->id));
} else {
LOG(LL_ERROR, ("%lu MQTT auth failed, code %d", c->id, mm.ack));
c->is_closing = 1;
@@ -4081,7 +4081,6 @@ void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
struct mg_str s = mg_loadfile(fs, opts->ca);
rc = mbedtls_x509_crt_parse(&tls->ca, (uint8_t *) s.ptr, s.len + 1);
if (opts->ca[0] != '-') free((char *) s.ptr);
LOG(LL_INFO, ("%s %d", opts->ca, (int) s.len));
if (rc != 0) {
mg_error(c, "parse(%s) err %#x", opts->ca, -rc);
goto fail;
+1 -1
View File
@@ -222,7 +222,7 @@ static void mqtt_cb(struct mg_connection *c, int ev, void *ev_data,
case MQTT_CMD_CONNACK:
mg_call(c, MG_EV_MQTT_OPEN, &mm.ack);
if (mm.ack == 0) {
LOG(LL_INFO, ("%lu Connected", c->id));
LOG(LL_DEBUG, ("%lu Connected", c->id));
} else {
LOG(LL_ERROR, ("%lu MQTT auth failed, code %d", c->id, mm.ack));
c->is_closing = 1;
-1
View File
@@ -139,7 +139,6 @@ void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
struct mg_str s = mg_loadfile(fs, opts->ca);
rc = mbedtls_x509_crt_parse(&tls->ca, (uint8_t *) s.ptr, s.len + 1);
if (opts->ca[0] != '-') free((char *) s.ptr);
LOG(LL_INFO, ("%s %d", opts->ca, (int) s.len));
if (rc != 0) {
mg_error(c, "parse(%s) err %#x", opts->ca, -rc);
goto fail;