This reverts commit 603cf56878
.
This commit is contained in:
parent
df4ef4de80
commit
4ae71b5878
1 changed files with 1 additions and 8 deletions
|
@ -47,14 +47,7 @@ func WithJobLogger(ctx context.Context, jobName string, secrets map[string]strin
|
||||||
formatter.insecureSecrets = insecureSecrets
|
formatter.insecureSecrets = insecureSecrets
|
||||||
nextColor++
|
nextColor++
|
||||||
|
|
||||||
var logger *logrus.Logger
|
logger := logrus.New()
|
||||||
fieldLogger := common.Logger(ctx)
|
|
||||||
if fieldLogger != nil {
|
|
||||||
logger = fieldLogger.(*logrus.Logger)
|
|
||||||
}
|
|
||||||
if logger == nil {
|
|
||||||
logger = logrus.New()
|
|
||||||
}
|
|
||||||
logger.SetFormatter(formatter)
|
logger.SetFormatter(formatter)
|
||||||
logger.SetOutput(os.Stdout)
|
logger.SetOutput(os.Stdout)
|
||||||
logger.SetLevel(logrus.GetLevel())
|
logger.SetLevel(logrus.GetLevel())
|
||||||
|
|
Loading…
Reference in a new issue