Merge pull request #434 from gc87/mqtt-cert-load-directly

fix: remove incorrect error logs
This commit is contained in:
fengzeroz
2022-04-18 13:07:08 +08:00
committed by GitHub
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -346,8 +346,6 @@ static void mqtt_routine_publish(mqtt_routine_t *routine)
}
free(result);
} else {
log_error_node(routine->plugin, "payload or topic is null");
}
}
-2
View File
@@ -315,7 +315,6 @@ static int bio_connect(struct reconnect_state *state)
}
if (do_connect_rv <= 0) {
log_error("bio connect error:%d", do_connect_rv);
return -1;
}
@@ -402,7 +401,6 @@ enum MQTTErrors inspector_callback(struct mqtt_client *mqtt)
SSL *ssl = NULL;
BIO_get_ssl(state->sock_fd, &ssl);
if (X509_V_OK != SSL_get_verify_result(ssl)) {
log_error("x509 certificate verification failed");
mqtt->error = MQTT_ERROR_SOCKET_ERROR;
}
}