diff --git a/logs/database_logs.go b/logs/database_logs.go index 72f9c18c9dfdaa68b20f3b8740befb75d0420077..5053cea23093b0b321b35cd04f81fa1e09420b7f 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 } }