From e9bdb983c8be1d08328c56cf33715c965670e843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sat, 1 Jun 2024 22:16:39 +0200 Subject: [PATCH] tasks: improve log level --- api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.go b/api/api.go index c15be6e2..6124256d 100644 --- a/api/api.go +++ b/api/api.go @@ -155,7 +155,7 @@ func maybeRunTaskInBackground(c *gin.Context, name string, resources []string, p // Run this task in background if configured globally or per-request background := truthy(c.DefaultQuery("_async", strconv.FormatBool(context.Config().AsyncAPI))) if background { - log.Info().Msg("Executing task asynchronously") + log.Debug().Msg("Executing task asynchronously") task, conflictErr := runTaskInBackground(name, resources, proc) if conflictErr != nil { AbortWithJSONError(c, 409, conflictErr) @@ -163,7 +163,7 @@ func maybeRunTaskInBackground(c *gin.Context, name string, resources []string, p } c.JSON(202, task) } else { - log.Info().Msg("Executing task synchronously") + log.Debug().Msg("Executing task synchronously") out := context.Progress() detail := task.Detail{} retValue, err := proc(out, &detail)