From 35b1996704f6635bb29ea3604410e133209e6432 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 18 Oct 2017 18:07:50 -0500 Subject: supervise-daemon: elevate some log messages to warnings Prior to this change, we were logging unexpected terminations of daemons we were supervising at the info level. This change moves the logs to warnings. --- src/rc/supervise-daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index a781ad9d..f1e8ea16 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -771,17 +771,17 @@ int main(int argc, char **argv) } else respawn_count++; if (respawn_count >= respawn_max) { - syslog(LOG_INFO, "respawned \"%s\" too many times, " + syslog(LOG_WARNING, "respawned \"%s\" too many times, " "exiting", exec); exiting = true; continue; } } if (WIFEXITED(i)) - syslog(LOG_INFO, "%s, pid %d, exited with return code %d", + syslog(LOG_WARNING, "%s, pid %d, exited with return code %d", exec, child_pid, WEXITSTATUS(i)); else if (WIFSIGNALED(i)) - syslog(LOG_INFO, "%s, pid %d, terminated by signal %d", + syslog(LOG_WARNING, "%s, pid %d, terminated by signal %d", exec, child_pid, WTERMSIG(i)); child_pid = fork(); if (child_pid == -1) -- cgit v1.2.3