]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-wait-for-jobs: fix quiet argument for log_job_error_with_service_result()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Dec 2025 18:26:40 +0000 (03:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Dec 2025 19:16:21 +0000 (04:16 +0900)
The argument 'quiet' is a boolean, not a integrer and not a log level.

Follow-up for 0d91a204cb78d692f23e80d3a08f9b81ecad753a.
Fixes #40030.

src/shared/bus-wait-for-jobs.c

index fac7fe112e809a26340673310274a50abcecaa16..fda64526a5db0bb236bee6699588e0dd91b4a720 100644 (file)
@@ -275,7 +275,10 @@ static int check_wait_response(BusWaitForJobs *d, WaitJobsFlags flags, const cha
                         log_debug_errno(r, "Failed to get Result property of unit %s, ignoring: %m",
                                         d->name);
 
-                log_job_error_with_service_result(d->name, result, priority, extra_args);
+                log_job_error_with_service_result(
+                                d->name, result,
+                                /* quiet= */ !FLAGS_SET(flags, BUS_WAIT_JOBS_LOG_ERROR),
+                                extra_args);
         } else /* Otherwise we just show a generic message. */
                 log_full(priority, "Job failed. See \"journalctl -xe\" for details.");