commit:     35b1996704f6635bb29ea3604410e133209e6432
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Wed Oct 18 23:07:50 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct 18 23:07:50 2017 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=35b19967

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(-)

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)

Reply via email to