From 3baac0a2d89c7fdc94443fdfa19c503ecab4ab22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 18 Jul 2022 19:26:49 +0200 Subject: [PATCH] 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. --- internal/manager/api_impl/workers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/manager/api_impl/workers.go b/internal/manager/api_impl/workers.go index f9832acb..f5737acd 100644 --- a/internal/manager/api_impl/workers.go +++ b/internal/manager/api_impl/workers.go @@ -279,7 +279,7 @@ func (f *Flamenco) ScheduleTask(e echo.Context) error { // Check that this worker is actually allowed to do work. if worker.StatusRequested != "" { - logger.Warn(). + logger.Info(). Str("workerStatus", string(worker.Status)). Str("requestedStatus", string(worker.StatusRequested)). Msg("worker asking for task but needs state change first")