]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: drop explicit log_open()/log_close() now that it is unnecessary
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 15:41:53 +0000 (17:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 15:46:34 +0000 (17:46 +0200)
src/core/execute.c

index edeb857e15549ba52ddc3425c98eefddf215735d..451a05b9de5cec75bd4e106d9e20d81d80ae28bc 100644 (file)
@@ -1323,9 +1323,7 @@ static bool skip_seccomp_unavailable(const Unit* u, const char* msg) {
         if (is_seccomp_available())
                 return false;
 
-        log_open();
         log_unit_debug(u, "SECCOMP features not detected in the kernel, skipping %s", msg);
-        log_close();
         return true;
 }
 
@@ -2109,10 +2107,8 @@ static int apply_mount_namespace(
         /* If we couldn't set up the namespace this is probably due to a
          * missing capability. In this case, silently proceeed. */
         if (IN_SET(r, -EPERM, -EACCES)) {
-                log_open();
                 log_unit_debug_errno(u, r, "Failed to set up namespace, assuming containerized execution, ignoring: %m");
-                log_close();
-                r = 0;
+                return 0;
         }
 
         return r;