From aac2ec7bf67b7d1f9d675e94fd5a4aa9caf17a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 11 Jan 2024 17:16:56 +0100 Subject: [PATCH] Manager: when requesting job deletion, also log its low-level database ID When an API request comes in to delete a job, not only log the job's UUID, but also include its database ID. This can help in figuring out database issues, as when the job is deleted, it's unknown what UUID it had. Database relations use the ID, and not the UUID. --- internal/manager/api_impl/jobs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/manager/api_impl/jobs.go b/internal/manager/api_impl/jobs.go index e900f670..35aca5e9 100644 --- a/internal/manager/api_impl/jobs.go +++ b/internal/manager/api_impl/jobs.go @@ -175,6 +175,7 @@ func (f *Flamenco) DeleteJob(e echo.Context, jobID string) error { } logger = logger.With(). + Uint("dbID", dbJob.ID). Str("currentstatus", string(dbJob.Status)). Logger() logger.Info().Msg("job deletion requested")