log: don't print function name with INFO logs
authorRobert Swiecki <robert@swiecki.net>
Mon, 17 Oct 2016 13:49:20 +0000 (15:49 +0200)
committerRobert Swiecki <robert@swiecki.net>
Mon, 17 Oct 2016 13:49:20 +0000 (15:49 +0200)
log.c
subproc.c

diff --git a/log.c b/log.c
index 3df66ce825961579b24662414b8cdd49afe00cb2..62812a4a570c1503cfb3d9d0d930b29d13032867 100644 (file)
--- a/log.c
+++ b/log.c
@@ -84,7 +84,7 @@ void logLog(enum llevel_t ll, const char *fn, int ln, bool perr, const char *fmt
                {"HR", "\033[0m", false},
                {"HB", "\033[1m", false},
                {"D", "\033[0;4m", true},
-               {"I", "\033[1m", true},
+               {"I", "\033[1m", false},
                {"W", "\033[0;33m", true},
                {"E", "\033[1;31m", true},
                {"F", "\033[7;35m", true},
index 423bfb58daa9cd826a8b046b20b63dfd063f6432..d939c9d7c4f544aa192cf5fa6240808407bcd039 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -249,8 +249,10 @@ int subprocReap(struct nsjconf_t *nsjconf)
                if (diff >= nsjconf->tlimit) {
                        LOG_I("PID: %d run time >= time limit (%ld >= %ld) (%s). Killing it", pid,
                              (long)diff, (long)nsjconf->tlimit, p->remote_txt);
-                       /* Probably a kernel bug - some processes cannot be killed with KILL if
-                        * they're namespaced, and in a stopped state */
+                       /*
+                        * Probably a kernel bug - some processes cannot be killed with KILL if
+                        * they're namespaced, and in a stopped state
+                        */
                        kill(pid, SIGCONT);
                        PLOG_D("Sent SIGCONT to PID: %d", pid);
                        kill(pid, SIGKILL);