fix: set logger with trace level

This commit is contained in:
Jason Song 2022-11-17 19:09:15 +08:00 committed by Jason Song
parent b9a9812ad9
commit 97629ae8af
No known key found for this signature in database
GPG key ID: 8402EEEE4511A8B5

View file

@ -84,7 +84,7 @@ func WithJobLogger(ctx context.Context, jobID string, jobName string, config *Co
}
logger.SetFormatter(formatter)
logger.SetOutput(os.Stdout)
logger.SetLevel(logrus.GetLevel())
logger.SetLevel(logrus.TraceLevel) // to be aware of steps
rtn := logger.WithFields(logrus.Fields{
"job": jobName,
"jobID": jobID,