1
1
mirror of https://github.com/nektos/act.git synced 2024-09-20 00:39:02 +03:00

Merge pull request #40 from marccampbell/stdout

Use stdout for actionLogger
This commit is contained in:
Casey Lee 2019-02-18 20:05:29 -08:00 committed by GitHub
commit c2c65353d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ const (
func newActionLogger(actionName string, dryrun bool) *logrus.Entry {
logger := logrus.New()
logger.SetFormatter(formatter)
logger.SetOutput(os.Stdout)
logger.SetLevel(logrus.GetLevel())
rtn := logger.WithFields(logrus.Fields{"action_name": actionName, "dryrun": dryrun})
return rtn