jobqueue: improve logging
Add job ID where it's missing
This commit is contained in:
parent
9c6438c8f4
commit
df73b835c3
2 changed files with 2 additions and 2 deletions
|
|
@ -274,7 +274,7 @@ func (q *dbJobQueue) FinishJob(id uuid.UUID, result interface{}) error {
|
|||
defer func() {
|
||||
err = tx.Rollback(context.Background())
|
||||
if err != nil && !errors.As(err, &pgx.ErrTxClosed) {
|
||||
logrus.Error("error rolling back finish job transaction: ", err)
|
||||
logrus.Errorf("error rolling back finish job transaction for job %s: %v", id, err)
|
||||
}
|
||||
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue