From 765ca28540a893ce3e861b467a5efb487538fd93 Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Fri, 9 Feb 2024 00:23:31 +0100 Subject: [PATCH] mqtt: clarify connection error message for mqtt() source Signed-off-by: Balazs Scheidler --- modules/mqtt/source/mqtt-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mqtt/source/mqtt-source.c b/modules/mqtt/source/mqtt-source.c index cd036702382..afb08c4ec78 100644 --- a/modules/mqtt/source/mqtt-source.c +++ b/modules/mqtt/source/mqtt-source.c @@ -138,7 +138,7 @@ _connect(LogThreadedFetcherDriver *s) if ((rc = MQTTClient_connect(self->client, &conn_opts)) != MQTTCLIENT_SUCCESS) { - msg_error("Error connecting mqtt client", + msg_error("Error connecting to mqtt server", evt_tag_str("error_code", MQTTClient_strerror(rc)), evt_tag_str("client_id", mqtt_client_options_get_client_id(&self->options)), log_pipe_location_tag(&self->super.super.super.super.super));