From 029b02b92da5c59ef390b1fcdd90b26b5acbb30c Mon Sep 17 00:00:00 2001 From: Seua Polyakov Date: Fri, 30 Oct 2015 09:56:09 +0200 Subject: [PATCH] Fix logging into stdin, when print option enable --- src/cmd/rocker-compose/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/rocker-compose/main.go b/src/cmd/rocker-compose/main.go index e59d34f..cd5e1fe 100644 --- a/src/cmd/rocker-compose/main.go +++ b/src/cmd/rocker-compose/main.go @@ -465,6 +465,8 @@ func initLogs(ctx *cli.Context) { if ctx.GlobalBool("verbose") { logger.Level = log.DebugLevel + } else if ctx.Bool("print") && ctx.GlobalString("log") == "" { + logger.Level = log.ErrorLevel } var (