Improve stream sending thread error message (#19300)
Ilya Mashchenko committed
Dec 30, 2024 at 18:21 UTC
e961c2ee2a0ccc3b420fbbb58753dffab0db1803
1 file changed
+5
-1
src/streaming/stream-conf.c
+5
-1
@@ -182,7 +182,11 @@ void stream_conf_load() {
182
stream_send.parents.ssl_ca_file = string_strdupz(appconfig_get(&stream_config, CONFIG_SECTION_STREAM, "CAfile", NULL));
183
184
if(stream_send.enabled && (!stream_send.parents.destination || !stream_send.api_key)) {
185
- nd_log_daemon(NDLP_ERR, "STREAM [send]: cannot enable sending thread - information is missing.");
185
+ nd_log_daemon(
186
+ NDLP_ERR,
187
+ "STREAM [send]: cannot enable sending thread - missing required fields (destination: %s, api key: %s)",
188
+ stream_send.parents.destination ? "present" : "missing",
189
+ stream_send.api_key ? "present" : "missing");
190
stream_send.enabled = false;
191
}
192