Skip to content

Commit

Permalink
Improve stream sending thread error message (netdata#19300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Dec 30, 2024
1 parent 7d54ae4 commit e961c2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/streaming/stream-conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e961c2e

Please sign in to comment.