Skip to content

Commit ed64e65

Browse files
committed
core/mount: remove logrus import
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent ea8265f commit ed64e65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/mount/mount_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"time"
3030

3131
"github.com/containerd/containerd/v2/pkg/userns"
32-
"github.com/sirupsen/logrus"
32+
"github.com/containerd/log"
3333
"golang.org/x/sys/unix"
3434
)
3535

@@ -253,11 +253,11 @@ func doPrepareIDMappedOverlay(lowerDirs []string, usernsFd int) (tmpLowerDirs []
253253
cleanUp := func() {
254254
for _, lowerDir := range tmpLowerDirs {
255255
if err := unix.Unmount(lowerDir, 0); err != nil {
256-
logrus.WithError(err).Warnf("failed to unmount temp lowerdir %s", lowerDir)
256+
log.L.WithError(err).Warnf("failed to unmount temp lowerdir %s", lowerDir)
257257
}
258258
}
259259
if terr := os.RemoveAll(filepath.Clean(filepath.Join(tmpLowerDirs[0], ".."))); terr != nil {
260-
logrus.WithError(terr).Warnf("failed to remove temporary overlay lowerdir's")
260+
log.L.WithError(terr).Warnf("failed to remove temporary overlay lowerdir's")
261261
}
262262
}
263263
for i, lowerDir := range lowerDirs {

0 commit comments

Comments
 (0)