aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-18 18:07:50 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-10-18 18:07:50 -0500
commit35b1996704f6635bb29ea3604410e133209e6432 (patch)
tree1c0f74d6ac22218804025e73882ca8dca578d88d /src
parent3c8e7ed255edb8df0d548d6ce514544d5422cbf0 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rc/supervise-daemon.c6
1 files changed, 3 insertions, 3 deletions
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)