Update internal/app/run/runner.go
Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
This commit is contained in:
parent
233bf92f9b
commit
a2b35caa31
@ -223,7 +223,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
|
|||||||
// add logger recorders
|
// add logger recorders
|
||||||
ctx = common.WithLoggerHook(ctx, reporter)
|
ctx = common.WithLoggerHook(ctx, reporter)
|
||||||
|
|
||||||
if log.GetLevel() <= log.InfoLevel {
|
if !log.IsLevelEnabled(log.DebugLevel) {
|
||||||
ctx = runner.WithJobLoggerFactory(ctx, NullLogger{})
|
ctx = runner.WithJobLoggerFactory(ctx, NullLogger{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user