Skip to content

Commit

Permalink
Revert "feat: allow existing logger from context (#859)" (#890)
Browse files Browse the repository at this point in the history
This reverts commit 603cf56.
  • Loading branch information
Ryan authored Nov 19, 2021
1 parent df4ef4d commit 4ae71b5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/runner/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,7 @@ func WithJobLogger(ctx context.Context, jobName string, secrets map[string]strin
formatter.insecureSecrets = insecureSecrets
nextColor++

var logger *logrus.Logger
fieldLogger := common.Logger(ctx)
if fieldLogger != nil {
logger = fieldLogger.(*logrus.Logger)
}
if logger == nil {
logger = logrus.New()
}
logger := logrus.New()
logger.SetFormatter(formatter)
logger.SetOutput(os.Stdout)
logger.SetLevel(logrus.GetLevel())
Expand Down

0 comments on commit 4ae71b5

Please sign in to comment.