diff --git a/main.go b/main.go index 3049e502..0e4ea56b 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,7 @@ import ( "strings" vc "github.com/containers/virtcontainers" + "github.com/containers/virtcontainers/pkg/oci" specs "github.com/opencontainers/runtime-spec/specs-go" "github.com/sirupsen/logrus" "github.com/urfave/cli" @@ -194,6 +195,9 @@ func beforeSubcommands(context *cli.Context) error { // Set virtcontainers logger. vci.SetLogger(ccLog) + // Set the OCI package logger. + oci.SetLogger(ccLog) + ignoreLogging := false if context.NArg() == 1 && context.Args()[0] == "cc-env" { // "cc-env" should simply report the logging setup