From 9a3612abf179cd1805a0734a34f89271f1373b20 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sun, 6 Oct 2024 14:05:06 +0800 Subject: [PATCH] chore: log more data --- internal/collections/infra/mysql_repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collections/infra/mysql_repo.go b/internal/collections/infra/mysql_repo.go index a8ac3091..25ac4a00 100644 --- a/internal/collections/infra/mysql_repo.go +++ b/internal/collections/infra/mysql_repo.go @@ -524,7 +524,7 @@ func (r mysqlRepo) GetSubjectEpisodesCollection( func (r mysqlRepo) updateSubject(ctx context.Context, subjectID model.SubjectID) { if err := r.reCountSubjectCollection(ctx, subjectID); err != nil { - r.log.Error("failed to update collection counts", zap.Error(err)) + r.log.Error("failed to update collection counts", zap.Error(err), zap.Uint32("subject_id", subjectID)) } }