summaryrefslogtreecommitdiffstats
path: root/streaming/receiver.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-11-19 22:12:29 +0200
committerGitHub <noreply@github.com>2021-11-19 22:12:29 +0200
commit454387fcf4d30b57f0f2264f9d4acce081808d7a (patch)
tree94c5881dceb1bbb1f38a520a73a2be08d7787a2b /streaming/receiver.c
parent11b8588c94b37b7a082a041342e69e21a0a81ad5 (diff)
Cleanup compilation warnings (#11810)
* Fix compilation warnings (variables used when debugging is enabled using NETDATA_INTERNAL_CHECKS) * Fix compilation warning (casting)
Diffstat (limited to 'streaming/receiver.c')
-rw-r--r--streaming/receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index bb7dca77c1..e8f8528a75 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -346,13 +346,12 @@ static int rrdpush_receive(struct receiver_state *rpt)
netdata_mutex_unlock(&rpt->host->receiver_lock);
}
+#ifdef NETDATA_INTERNAL_CHECKS
int ssl = 0;
#ifdef ENABLE_HTTPS
if (rpt->ssl.conn != NULL)
ssl = 1;
#endif
-
-#ifdef NETDATA_INTERNAL_CHECKS
info("STREAM %s [receive from [%s]:%s]: client willing to stream metrics for host '%s' with machine_guid '%s': update every = %d, history = %ld, memory mode = %s, health %s,%s tags '%s'"
, rpt->hostname
, rpt->client_ip