~bigbes/core-go

70c7fe3b3e4da6e331eb19c65d334d215c986332 — Drew DeVault 5 years ago d6bd006
webhooks/legacy: increase specificity of logging
1 files changed, 2 insertions(+), 2 deletions(-)

M webhooks/legacy.go
M webhooks/legacy.go => webhooks/legacy.go +2 -2
@@ 184,10 184,10 @@ func (lq *LegacyQueue) queueStage2(ctx context.Context, tx *sql.Tx,
		return deliverPayload(ctx, name, sub.URL, headers, payload, deliveryID)
	}).Retries(5).After(func(ctx context.Context, task *work.Task) {
		if task.Result() == nil {
			log.Printf("%s: delivery complete after %d attempts",
			log.Printf("%s: webhook delivery complete after %d attempts",
				deliveryUUID, task.Attempts())
		} else {
			log.Printf("%s: delivery failed after %d attempts: %v",
			log.Printf("%s: webhook delivery failed after %d attempts: %v",
				deliveryUUID, task.Attempts(), task.Result())
		}
	}), nil