From e961c2ee2a0ccc3b420fbbb58753dffab0db1803 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Mon, 30 Dec 2024 18:21:26 +0200 Subject: [PATCH] Improve stream sending thread error message (#19300) --- src/streaming/stream-conf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/streaming/stream-conf.c b/src/streaming/stream-conf.c index 752e08ccc0a1f5..2f90e820d73c6f 100644 --- a/src/streaming/stream-conf.c +++ b/src/streaming/stream-conf.c @@ -182,7 +182,11 @@ void stream_conf_load() { stream_send.parents.ssl_ca_file = string_strdupz(appconfig_get(&stream_config, CONFIG_SECTION_STREAM, "CAfile", NULL)); if(stream_send.enabled && (!stream_send.parents.destination || !stream_send.api_key)) { - nd_log_daemon(NDLP_ERR, "STREAM [send]: cannot enable sending thread - information is missing."); + nd_log_daemon( + NDLP_ERR, + "STREAM [send]: cannot enable sending thread - missing required fields (destination: %s, api key: %s)", + stream_send.parents.destination ? "present" : "missing", + stream_send.api_key ? "present" : "missing"); stream_send.enabled = false; }