]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: raise the log level of missing executable to notice
authorMike Yuan <me@yhndnzj.com>
Mon, 19 Feb 2024 12:43:47 +0000 (20:43 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 19 Feb 2024 15:12:59 +0000 (23:12 +0800)
Suggested in
https://github.com/systemd/systemd/pull/31351#discussion_r1494450831:

> one above just informational, but also not a warning yet.

src/core/exec-invoke.c

index ec765031edc43208c150434d724531beb3fd44a7..02f66ead2d37cce23b4ec2163d8f32a599299c7b 100644 (file)
@@ -4793,7 +4793,7 @@ int exec_invoke(
         r = find_executable_full(command->path, /* root= */ NULL, context->exec_search_path, false, &executable, &executable_fd);
         if (r < 0) {
                 *exit_status = EXIT_EXEC;
-                log_exec_struct_errno(context, params, LOG_INFO, r,
+                log_exec_struct_errno(context, params, LOG_NOTICE, r,
                                       "MESSAGE_ID=" SD_MESSAGE_SPAWN_FAILED_STR,
                                       LOG_EXEC_INVOCATION_ID(params),
                                       LOG_EXEC_MESSAGE(params,