@cryptotaxi247 / netdata-1 / commits / 1d15018c4

add more debug info for cgroups default status

Costa Tsaousis (ktsaou) committed Dec 27, 2016 at 22:02 UTC 1d15018c4af46b44db0edef30c69ce3a5a4f6c60
1 file changed +1 -2
src/sys_fs_cgroup.c
+1 -2
@@ -673,7 +673,6 @@ struct cgroup *cgroup_add(const char *id) {
673
674 // disable by default the root cgroup
675 def = 0;
676 - debug(D_CGROUP, "cgroup '%s' is the root container (by default %s)", id, (def)?"enabled":"disabled");
676 }
677 else {
678 if(*chart_id == '/') chart_id++;
@@ -708,9 +707,9 @@ struct cgroup *cgroup_add(const char *id) {
707 (len > 7 && !strncmp(chart_id, "lxc/", 4) && !strncmp(&chart_id[len - 3], "/ns", 3)) // #1397
708 ) {
709 def = 0;
711 - debug(D_CGROUP, "cgroup '%s' is %s (by default)", id, (def)?"enabled":"disabled");
710 }
711 }
712 + debug(D_CGROUP, "cgroup '%s' (chart_id '%s') is (by default) %s", id, chart_id, (def)?"enabled":"disabled");
713
714 struct cgroup *cg = callocz(1, sizeof(struct cgroup));
715