fix: remove unused TestContext (#1013)
The function `WithTestContext` is never called in the project, and there is just one usage of `TestContext`, inside one of our loggers Co-authored-by: Casey Lee <cplee@nektos.com> Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -58,12 +58,6 @@ func WithJobLogger(ctx context.Context, jobName string, config *Config, masks *[
|
||||
nextColor++
|
||||
|
||||
logger := logrus.New()
|
||||
if common.TestContext(ctx) {
|
||||
fieldLogger := common.Logger(ctx)
|
||||
if fieldLogger != nil {
|
||||
logger = fieldLogger.(*logrus.Logger)
|
||||
}
|
||||
}
|
||||
logger.SetFormatter(formatter)
|
||||
logger.SetOutput(os.Stdout)
|
||||
logger.SetLevel(logrus.GetLevel())
|
||||
|
Reference in New Issue
Block a user