Merge pull request #40 from marccampbell/stdout
Use stdout for actionLogger
This commit is contained in:
commit
c2c65353d1
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ const (
|
||||||
func newActionLogger(actionName string, dryrun bool) *logrus.Entry {
|
func newActionLogger(actionName string, dryrun bool) *logrus.Entry {
|
||||||
logger := logrus.New()
|
logger := logrus.New()
|
||||||
logger.SetFormatter(formatter)
|
logger.SetFormatter(formatter)
|
||||||
|
logger.SetOutput(os.Stdout)
|
||||||
logger.SetLevel(logrus.GetLevel())
|
logger.SetLevel(logrus.GetLevel())
|
||||||
rtn := logger.WithFields(logrus.Fields{"action_name": actionName, "dryrun": dryrun})
|
rtn := logger.WithFields(logrus.Fields{"action_name": actionName, "dryrun": dryrun})
|
||||||
return rtn
|
return rtn
|
||||||
|
|
Loading…
Reference in a new issue