Skip to content

Commit 16dc1b3

Browse files
committed
Reduce -P logging severity to debug
1 parent 4d3a8cf commit 16dc1b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kill.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void notify_spawn_subprocess(const char* script, char* const argv[], cons
111111
} else if (ready == 0) {
112112
// child is still running. Ignore unless a timeout was set.
113113
if (timeout_ms > 0)
114-
warn("%s: timeout waiting for process\n", __func__);
114+
warn("%s: timeout waiting for process %s\n", __func__, script);
115115
} else {
116116
// child has exited
117117
int ret = 0, wstatus = 0;
@@ -630,10 +630,10 @@ void kill_process(const poll_loop_args_t* args, int sig, const procinfo_t* victi
630630
}
631631

632632
// Invoke program BEFORE killing a process. There is a small risk that there
633-
// is not enough memory to spawn it, warn; and a brief period of sleep to
633+
// is not enough memory to spawn it, warn; and a brief period of waiting to
634634
// let the program be able to start and do something meaningful.
635635
if (sig != 0 && args->kill_process_prehook) {
636-
warn("going to invoke program before killing: %s\n", args->kill_process_prehook);
636+
debug("going to invoke program before killing: %s\n", args->kill_process_prehook);
637637
kill_process_prehook(args, victim);
638638
}
639639

0 commit comments

Comments
 (0)