Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #935 from sameo/topic/ociLogger
Browse files Browse the repository at this point in the history
main: Set the OCI vc package logger
  • Loading branch information
jodh-intel authored Jan 18, 2018
2 parents 4411ba1 + 024568f commit ae68143
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ae68143

Please sign in to comment.