浏览代码

daemon: daemon.createSpec: remove uses of logrus

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 年之前
父节点
当前提交
150b1c8c73
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      daemon/oci_windows.go

+ 1 - 3
daemon/oci_windows.go

@@ -8,8 +8,6 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/sirupsen/logrus"
-
 	"github.com/containerd/containerd/log"
 	coci "github.com/containerd/containerd/oci"
 	containertypes "github.com/docker/docker/api/types/container"
@@ -212,7 +210,7 @@ func (daemon *Daemon) createSpec(ctx context.Context, daemonCfg *configStore, c
 		return nil, err
 	}
 
-	if logrus.IsLevelEnabled(logrus.DebugLevel) {
+	if log.G(ctx).Level >= log.DebugLevel {
 		if b, err := json.Marshal(&s); err == nil {
 			log.G(ctx).Debugf("Generated spec: %s", string(b))
 		}