]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
namespace: downgrade log messages to LOG_DEBUG
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 11:16:40 +0000 (13:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 11:35:28 +0000 (13:35 +0200)
almost all code in namespace.c only logs at debug level as it is
"library-like" code. But there are some outliers. Adjust them to match
the rest of the code

(Well, there are some left)

src/core/namespace.c

index f1a24d23ad55082df8a98e157b905d00faae056e..7d14a9314465d1c235bb812a95a6b0d0d8481737 100644 (file)
@@ -951,7 +951,7 @@ add_symlink:
                      temporary_mount,
                      S_ISCHR(st.st_mode) ? "char" : "block",
                      DEVNUM_FORMAT_VAL(st.st_rdev)) < 0)
-                return log_oom();
+                return log_oom_debug();
 
         (void) mkdir_parents(sl, 0755);
 
@@ -2362,7 +2362,7 @@ int setup_namespace(const NamespaceParameters *p, char **error_path) {
 
                 q = strjoin("/run/systemd/journal.", p->log_namespace);
                 if (!q)
-                        return log_oom();
+                        return log_oom_debug();
 
                 MountEntry *me = mount_list_extend(&ml);
                 if (!me)