Manager: reduce log level when worker asks task but has wrong status

This can happen quite often and it's fine, so it's not worth a warning.
This commit is contained in:
Sybren A. Stüvel 2022-07-18 19:26:49 +02:00
parent eb65ac9085
commit 3baac0a2d8

View File

@ -279,7 +279,7 @@ func (f *Flamenco) ScheduleTask(e echo.Context) error {
// Check that this worker is actually allowed to do work. // Check that this worker is actually allowed to do work.
if worker.StatusRequested != "" { if worker.StatusRequested != "" {
logger.Warn(). logger.Info().
Str("workerStatus", string(worker.Status)). Str("workerStatus", string(worker.Status)).
Str("requestedStatus", string(worker.StatusRequested)). Str("requestedStatus", string(worker.StatusRequested)).
Msg("worker asking for task but needs state change first") Msg("worker asking for task but needs state change first")