diff --git a/src/Linux/hsflowd.c b/src/Linux/hsflowd.c index 1e34672..fe1be2d 100644 --- a/src/Linux/hsflowd.c +++ b/src/Linux/hsflowd.c @@ -716,8 +716,9 @@ extern "C" { int debugLevel = strtol(valBuf, NULL, 0); EVMod *mod = EVGetModule(sp->rootModule, keyBuf); if(mod) { - myDebug(1, "setting mod=%s debugLevel=%u", mod->name, debugLevel); mod->debugLevel = debugLevel; + myDebug(1, "setting mod=%s debugLevel=%u", mod->name, debugLevel); + EVDebug(mod, 1, "debugLevel=%u", debugLevel); } else { myDebug(1, "debug action ignored: %s", line); diff --git a/src/Linux/mod_containerd.c b/src/Linux/mod_containerd.c index 42bf656..0515641 100644 --- a/src/Linux/mod_containerd.c +++ b/src/Linux/mod_containerd.c @@ -1049,7 +1049,7 @@ extern "C" { updateContainerCgroupPaths(mod, container); } - cJSON *jenv = cJSON_GetObjectItem(jmetrics, "Env"); + cJSON *jenv = cJSON_GetObjectItem(top, "Env"); if(jenv && container->gpu_dev == NO) readContainerGPUsFromEnv(mod, container, jenv); diff --git a/src/Linux/mod_k8s.c b/src/Linux/mod_k8s.c index 6577d2b..475bb3f 100644 --- a/src/Linux/mod_k8s.c +++ b/src/Linux/mod_k8s.c @@ -1267,7 +1267,7 @@ extern "C" { // Only try to find the GPU info once, but don't // try it on the sandbox container because it won't // have the full ENV. - cJSON *jenv = cJSON_GetObjectItem(jmetrics, "Env"); + cJSON *jenv = cJSON_GetObjectItem(top, "Env"); if(jenv && !pod->gpu_env_tried) readPodGPUsFromEnv(mod, pod, jenv);