From 2dd62b3d428747f7b0bb813dd10a501ab9381480 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 30 Mar 2021 19:13:01 -0700 Subject: [PATCH] libct/checkCriuFeatures: rm excessive debug 1. Remove printing criu args as now they are *always swrk 3. 2. Remove duplicated "feature check says" debug. Before: > DEBU[0000] Using CRIU with following args: [swrk 3] > DEBU[0000] Using CRIU in FEATURE_CHECK mode > DEBU[0000] Feature check says: type:FEATURE_CHECK success:true features: > DEBU[0000] Feature check says: mem_track:false lazy_pages:true After: > DEBU[0000] Using CRIU in FEATURE_CHECK mode > DEBU[0000] Feature check says: mem_track:false lazy_pages:true Signed-off-by: Kir Kolyshkin --- libcontainer/container_linux.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index 7ce505ea0..5edd745fe 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -717,7 +717,6 @@ func (c *linuxContainer) checkCriuFeatures(criuOpts *CriuOpts, rpcOpts *criurpc. return errors.New("CRIU feature check failed") } - logrus.Debugf("Feature check says: %s", criuFeatures) missingFeatures := false // The outer if checks if the fields actually exist @@ -1518,7 +1517,6 @@ func (c *linuxContainer) criuSwrk(process *Process, req *criurpc.CriuReq, opts * // the initial CRIU run to detect the version. Skip it. logrus.Debugf("Using CRIU %d at: %s", c.criuVersion, c.criuPath) } - logrus.Debugf("Using CRIU with following args: %s", args) cmd := exec.Command(c.criuPath, args...) if process != nil { cmd.Stdin = process.Stdin