Update internal/app/run/runner.go

Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
This commit is contained in:
Rowan Bohde 2024-05-01 16:23:51 -05:00 committed by GitHub
parent 233bf92f9b
commit a2b35caa31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
// add logger recorders
ctx = common.WithLoggerHook(ctx, reporter)
if log.GetLevel() <= log.InfoLevel {
if !log.IsLevelEnabled(log.DebugLevel) {
ctx = runner.WithJobLoggerFactory(ctx, NullLogger{})
}