mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 09:42:45 +00:00
create: Remove redundant logging code
Don't add the container ID as a log fields as it is already a field (added on #453). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
bf1cf684f5
commit
79e8da0675
@ -16,7 +16,6 @@ import (
|
||||
|
||||
vc "github.com/kata-containers/runtime/virtcontainers"
|
||||
"github.com/kata-containers/runtime/virtcontainers/pkg/oci"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@ -283,11 +282,7 @@ func createContainer(ociSpec oci.CompatOCISpec, containerID, bundlePath,
|
||||
|
||||
func createCgroupsFiles(containerID string, cgroupsDirPath string, cgroupsPathList []string, pid int) error {
|
||||
if len(cgroupsPathList) == 0 {
|
||||
fields := logrus.Fields{
|
||||
"container": containerID,
|
||||
"pid": pid,
|
||||
}
|
||||
kataLog.WithFields(fields).Info("Cgroups files not created because cgroupsPath was empty")
|
||||
kataLog.WithField("pid", pid).Info("Cgroups files not created because cgroupsPath was empty")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user