@cryptotaxi247 / netdata-1 / commits / cc13cdc95

added debug info required for #897

Costa Tsaousis (ktsaou) committed Sep 7, 2016 at 20:53 UTC cc13cdc953fc7a0c845d31906e2157d5b6f57f34
1 file changed +3
src/health.c
+3
@@ -1461,6 +1461,7 @@ void health_readdir(const char *path) {
1461 (de->d_name[0] == '.' && de->d_name[1] == '\0')
1462 || (de->d_name[0] == '.' && de->d_name[1] == '.' && de->d_name[2] == '\0')
1463 ))
1464 + debug(D_HEALTH, "Ignoring directory '%s'", de->d_name);
1465 continue;
1466
1467 else if(de->d_type == DT_DIR) {
@@ -1477,6 +1478,8 @@ void health_readdir(const char *path) {
1478 len > 5 && !strcmp(&de->d_name[len - 5], ".conf")) {
1479 health_readfile(path, de->d_name);
1480 }
1481 +
1482 + else debug(D_HEALTH, "Ignoring file '%s'", de->d_name);
1483 }
1484
1485 closedir(dir);