@cryptotaxi247 / netdata-1 / commits / 18903bded

add debug info to trace #2334

Costa Tsaousis (ktsaou) committed Jun 17, 2017 at 11:22 UTC 18903bded18ef43a55f521456579e4dd03cd3754
1 file changed +3 -2
src/backends.c
+3 -2
@@ -601,9 +601,10 @@ void *backends_main(void *ptr) {
601
602 // ------------------------------------------------------------------------
603 // Wait for the next iteration point.
604 +
605 heartbeat_next(&hb, step_ut);
606 time_t before = now_realtime_sec();
606 -
607 + debug(D_BACKEND, "BACKEND: preparing buffer for timeframe %lu to %lu", (unsigned long)after, (unsigned long)before);
608
609 // ------------------------------------------------------------------------
610 // add to the buffer the data we need to send to the backend
@@ -643,7 +644,7 @@ void *backends_main(void *ptr) {
644 count_dims++;
645 }
646 else {
646 - debug(D_BACKEND, "BACKEND: not sending dimension '%s' of chart '%s' from host '%s', its last data collection is not within our timeframe", rd->id, st->id, __hostname);
647 + debug(D_BACKEND, "BACKEND: not sending dimension '%s' of chart '%s' from host '%s', its last data collection (%lu) is not within our timeframe (%lu to %lu)", rd->id, st->id, __hostname, (unsigned long)rd->last_collected_time.tv_sec, (unsigned long)after, (unsigned long)before);
648 count_dims_skipped++;
649 }
650 }