From d0a3edd67f5291a17e105831703cd7f51bbcfa31 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Mon, 17 Oct 2016 15:49:20 +0200 Subject: [PATCH] log: don't print function name with INFO logs --- log.c | 2 +- subproc.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/log.c b/log.c index 3df66ce..62812a4 100644 --- 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}, diff --git a/subproc.c b/subproc.c index 423bfb5..d939c9d 100644 --- 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);