From 0190a90d9736de2fb3513a33aceab4678a2010da Mon Sep 17 00:00:00 2001
From: jano3 <jano@bob.co.za>
Date: Tue, 22 Apr 2025 14:32:26 +0200
Subject: [PATCH] Change function name to ShouldSuppressDBLog

---
 logs/database_logs.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/logs/database_logs.go b/logs/database_logs.go
index 72f9c18..5053cea 100644
--- a/logs/database_logs.go
+++ b/logs/database_logs.go
@@ -31,7 +31,7 @@ var ignoredTableInserts = []string{
 }
 
 type ContextWithSuppressDBLog interface {
-	DoSuppressDBLog() bool
+	ShouldSuppressDBLog() bool
 }
 
 type QueryHook struct {
@@ -46,7 +46,7 @@ func (d QueryHook) BeforeQuery(ctx context.Context, _ *bun.QueryEvent) context.C
 func (d QueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent) {
 	contextWithSuppressDBLog, ok := ctx.(ContextWithSuppressDBLog)
 	if ok {
-		if contextWithSuppressDBLog.DoSuppressDBLog() {
+		if contextWithSuppressDBLog.ShouldSuppressDBLog() {
 			return
 		}
 	}
-- 
GitLab