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

Commit

Permalink
main: Set the OCI vc package logger
Browse files Browse the repository at this point in the history
In order to merge the virtcontainers OCI package logs with
the rest of the cc-runtime ones.

Fixes #934

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed Jan 17, 2018
1 parent 4411ba1 commit 024568f
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 024568f

Please sign in to comment.