Worker: reduce logging

This commit is contained in:
Sybren A. Stüvel 2022-03-17 15:39:59 +01:00
parent c989bce51e
commit 5ea3bfe301

View File

@ -108,7 +108,9 @@ func (w *Worker) fetchTask(ctx context.Context) *api.AssignedTask {
Msg("access denied") Msg("access denied")
wait = durationFetchFailed wait = durationFetchFailed
case resp.StatusCode() == http.StatusNoContent: case resp.StatusCode() == http.StatusNoContent:
log.Info().Msg("no task available") log.Debug().Msg("no task available")
// TODO: implement gradual back-off, to avoid too frequent checks when the
// farm is idle.
wait = durationNoTask wait = durationNoTask
default: default:
log.Warn(). log.Warn().