@cryptotaxi247 / netdata-1 / commits / e913f52d8

added debug statements to trace VARIABLES streaming

Costa Tsaousis (ktsaou) committed Oct 15, 2017 at 16:48 UTC e913f52d832d74b99649669e0c1bb666447c9309
1 file changed +3 -1
src/rrdpush.c
+3 -1
@@ -197,6 +197,8 @@ static inline void rrdpush_sender_add_variable_to_buffer_nolock(RRDHOST *host, R
197 , rv->name
198 , *value
199 );
200 +
201 + debug(D_STREAM, "RRDVAR pushed VARIABLE %s = " CALCULATED_NUMBER_FORMAT, rv->name, *value);
202 }
203
204 void rrdpush_sender_send_this_variable_now(RRDHOST *host, RRDVAR *rv) {
@@ -224,7 +226,7 @@ static int rrdpush_sender_thread_custom_variables_callback(void *rrdvar_ptr, voi
226
227 static void rrdpush_sender_thread_send_custom_variables(RRDHOST *host) {
228 int ret = rrdvar_callback_for_all_variables(host, rrdpush_sender_thread_custom_variables_callback, host);
227 - info("RRDVAR printed %d VARIABLES", ret);
229 + debug(D_STREAM, "RRDVAR sent %d VARIABLES", ret);
230 }
231
232 // resets all the chart, so that their definitions