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.
This commit is contained in:
parent
6777e89589
commit
aac2ec7bf6
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user