tmpfiles: minor logging fixes (#40875)

This commit is contained in:
Mike Yuan
2026-02-28 11:48:43 +01:00
committed by GitHub
+3 -3
View File
@@ -2384,13 +2384,13 @@ static int create_symlink(Context *c, Item *i) {
r = chase(i->argument, arg_root, CHASE_SAFE|CHASE_PREFIX_ROOT|CHASE_NOFOLLOW, /* ret_path= */ NULL, /* ret_fd= */ NULL);
if (r == -ENOENT) {
/* Silently skip over lines where the source file is missing. */
log_info("Symlink source path '%s/%s' does not exist, skipping line.",
empty_to_root(arg_root), skip_leading_slash(i->argument));
log_debug_errno(r, "Symlink source path '%s/%s' does not exist, skipping line.",
strempty(arg_root), skip_leading_slash(i->argument));
return 0;
}
if (r < 0)
return log_error_errno(r, "Failed to check if symlink source path '%s/%s' exists: %m",
empty_to_root(arg_root), skip_leading_slash(i->argument));
strempty(arg_root), skip_leading_slash(i->argument));
}
r = path_extract_filename(i->path, &bn);