diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-11-30 00:22:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 00:22:07 +0200 |
commit | 0979ac0fb3831e19108aaa9b5a2f55aa4d6f24b4 (patch) | |
tree | 0370f11cd588e8c6e43ab943d4743370ceef5e52 /aclk/aclk.c | |
parent | 9682f0a43a2cd67996f9bf9143a1de6cedca378a (diff) |
convert some error messages to info (#16505)
Diffstat (limited to 'aclk/aclk.c')
-rw-r--r-- | aclk/aclk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c index b65f1a1ddd..e95d7d6ab7 100644 --- a/aclk/aclk.c +++ b/aclk/aclk.c @@ -235,22 +235,22 @@ void aclk_mqtt_wss_log_cb(mqtt_wss_log_type_t log_type, const char* str) switch(log_type) { case MQTT_WSS_LOG_ERROR: case MQTT_WSS_LOG_FATAL: + nd_log(NDLS_DAEMON, NDLP_ERR, "%s", str); + return; + case MQTT_WSS_LOG_WARN: - error_report("%s", str); + nd_log(NDLS_DAEMON, NDLP_WARNING, "%s", str); return; case MQTT_WSS_LOG_INFO: - nd_log(NDLS_DAEMON, NDLP_INFO, - "%s", - str); + nd_log(NDLS_DAEMON, NDLP_INFO, "%s", str); return; case MQTT_WSS_LOG_DEBUG: return; default: - nd_log(NDLS_DAEMON, NDLP_ERR, - "Unknown log type from mqtt_wss"); + nd_log(NDLS_DAEMON, NDLP_ERR, "Unknown log type from mqtt_wss"); } } |