diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-08-27 23:00:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 23:00:27 +0300 |
commit | bd02531f448bb41e5f86b100c6d2b3588272c5d9 (patch) | |
tree | 5dc719104d395a76ba729c5081a4f71ed97ed791 /collectors/cgroups.plugin | |
parent | d128889316cb27a909e617f5f9a1869709aec30b (diff) |
Change a log level in cgroup-network helper (#9836)
Diffstat (limited to 'collectors/cgroups.plugin')
-rw-r--r-- | collectors/cgroups.plugin/cgroup-network.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/collectors/cgroups.plugin/cgroup-network.c b/collectors/cgroups.plugin/cgroup-network.c index d01065422d..921b14dfb7 100644 --- a/collectors/cgroups.plugin/cgroup-network.c +++ b/collectors/cgroups.plugin/cgroup-network.c @@ -689,8 +689,10 @@ int main(int argc, char **argv) { } else if(!strcmp(argv[1], "--cgroup")) { char *cgroup = argv[2]; - if(verify_path(cgroup) == -1) - fatal("cgroup '%s' does not exist or is not valid.", cgroup); + if(verify_path(cgroup) == -1) { + error("cgroup '%s' does not exist or is not valid.", cgroup); + return 1; + } pid = read_pid_from_cgroup(cgroup); call_the_helper(pid, cgroup); |