chiark / gitweb /
execute: bump up log level of executed processes that failed
[elogind.git] / src / socket.c
index 257a4e959ab60c4fcf612d5c89f882cc7711b5fb..4cf21cf0b181eec475fc9e564c8eacc80496439c 100644 (file)
@@ -1535,7 +1535,8 @@ static void socket_sigchld_event(Unit *u, pid_t pid, int code, int status) {
                         success = true;
         }
 
-        log_debug("%s control process exited, code=%s status=%i", u->meta.id, sigchld_code_to_string(code), status);
+        log_full(success ? LOG_DEBUG : LOG_NOTICE,
+                 "%s control process exited, code=%s status=%i", u->meta.id, sigchld_code_to_string(code), status);
         s->failure = s->failure || !success;
 
         if (s->control_command && s->control_command->command_next && success) {