]> git.ipfire.org Git - pakfire.git/commitdiff
jail: Log less when creating/freeing a jail
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 19:51:10 +0000 (19:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 19:51:10 +0000 (19:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/jail.c

index 7c768da252d65ae7bdf725604dda1425ea82af10..07603e204bd185b0d32ae7f1bfb572571a1c8adf 100644 (file)
@@ -165,8 +165,6 @@ static int pakfire_jail_exec_has_flag(
 }
 
 static void pakfire_jail_free(struct pakfire_jail* jail) {
-       DEBUG(jail->ctx, "Freeing jail at %p\n", jail);
-
        if (jail->cgroup)
                pakfire_cgroup_unref(jail->cgroup);
        if (jail->pakfire)
@@ -207,8 +205,6 @@ int pakfire_jail_create(struct pakfire_jail** jail, struct pakfire* pakfire) {
        // Generate a random UUID
        uuid_generate_random(j->uuid);
 
-       DEBUG(j->ctx, "Allocated new jail at %p\n", j);
-
        // Create environment
        r = pakfire_env_create(&j->env, j->ctx);
        if (r < 0)
@@ -240,6 +236,9 @@ int pakfire_jail_create(struct pakfire_jail** jail, struct pakfire* pakfire) {
                        goto ERROR;
        }
 
+       // Log action
+       DEBUG(j->ctx, "Created new jail %s\n", pakfire_jail_uuid(j));
+
        // Done
        *jail = j;
        return 0;