From fde844e2e1a72480f3f9d9ef620273530836de8b Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 19 Sep 2023 14:18:48 +0100 Subject: [PATCH] vspd: Make log format consistent. Every log line which includes a ticket hash includes it in the end at in brackets, not inline with the message. --- internal/vspd/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/vspd/update.go b/internal/vspd/update.go index 8d5554a..a1aa803 100644 --- a/internal/vspd/update.go +++ b/internal/vspd/update.go @@ -322,7 +322,7 @@ func (v *Vspd) setOutcomes(ctx context.Context, dcrdClient *rpc.DcrdRPC) { continue } - v.log.Infof("Ticket %s %s at height %d", - dbTicket.Hash, dbTicket.Outcome, spentTicket.heightSpent) + v.log.Infof("Ticket %s at height %d (ticketHash=%s)", + dbTicket.Outcome, spentTicket.heightSpent, dbTicket.Hash) } }