]> arthur.barton.de Git - netdata.git/commitdiff
added debug info required for #897
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 7 Sep 2016 17:53:04 +0000 (20:53 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 7 Sep 2016 17:53:04 +0000 (20:53 +0300)
src/health.c

index e62852af0f205448a8a913f0c843b963b661a462..2f8457c3dc10c513c940a25d760503b2e6fc7b29 100644 (file)
@@ -1461,6 +1461,7 @@ void health_readdir(const char *path) {
                    (de->d_name[0] == '.' && de->d_name[1] == '\0')
                    || (de->d_name[0] == '.' && de->d_name[1] == '.' && de->d_name[2] == '\0')
            ))
+            debug(D_HEALTH, "Ignoring directory '%s'", de->d_name);
             continue;
 
         else if(de->d_type == DT_DIR) {
@@ -1477,6 +1478,8 @@ void health_readdir(const char *path) {
                 len > 5 && !strcmp(&de->d_name[len - 5], ".conf")) {
             health_readfile(path, de->d_name);
         }
+
+        else debug(D_HEALTH, "Ignoring file '%s'", de->d_name);
     }
 
     closedir(dir);