pkg/shim: remove logrus imports

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-17 12:35:36 +02:00
parent ab61734e3d
commit 75fd7a5a7f
3 changed files with 7 additions and 12 deletions

View File

@@ -43,7 +43,6 @@ import (
"github.com/containerd/plugin"
"github.com/containerd/plugin/registry"
"github.com/containerd/ttrpc"
"github.com/sirupsen/logrus"
)
// Publisher for events
@@ -171,12 +170,9 @@ func setRuntime() {
func setLogger(ctx context.Context, id string) (context.Context, error) {
l := log.G(ctx)
l.Logger.SetFormatter(&logrus.TextFormatter{
TimestampFormat: log.RFC3339NanoFixed,
FullTimestamp: true,
})
_ = log.SetFormat(log.TextFormat)
if debugFlag {
l.Logger.SetLevel(log.DebugLevel)
_ = log.SetLevel("debug")
}
f, err := openLog(ctx, id)
if err != nil {