From: Yu Watanabe Date: Fri, 31 Jul 2026 02:25:24 +0000 (+0900) Subject: core/service: append the original error cause in the debugging logs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3abe380d042ed11262606ddedb976be0a11b4a5e;p=thirdparty%2Fsystemd.git core/service: append the original error cause in the debugging logs --- diff --git a/src/core/service.c b/src/core/service.c index 8950eed5396..1c8460b1364 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -6294,17 +6294,17 @@ int service_determine_exec_selinux_label(Service *s, char **ret) { else r = chase(c->path, s->exec_context.root_directory, CHASE_PREFIX_ROOT|CHASE_TRIGGER_AUTOFS, &path, NULL); if (r < 0) { - log_unit_debug_errno(UNIT(s), r, "Failed to resolve service binary '%s', ignoring.", c->path); + log_unit_debug_errno(UNIT(s), r, "Failed to resolve service binary '%s', ignoring: %m", c->path); return -ENODATA; } r = mac_selinux_get_create_label_from_exe(path, ret); if (ERRNO_IS_NEG_NOT_SUPPORTED(r)) { - log_unit_debug_errno(UNIT(s), r, "Reading SELinux label off binary '%s' is not supported, ignoring.", path); + log_unit_debug_errno(UNIT(s), r, "Reading SELinux label off binary '%s' is not supported, ignoring: %m", path); return -ENODATA; } if (ERRNO_IS_NEG_PRIVILEGE(r)) { - log_unit_debug_errno(UNIT(s), r, "Can't read SELinux label off binary '%s', due to privileges, ignoring.", path); + log_unit_debug_errno(UNIT(s), r, "Can't read SELinux label off binary '%s', due to privileges, ignoring: %m", path); return -ENODATA; } if (r < 0) {