summaryrefslogtreecommitdiff
path: root/internal/db/bundb/trace.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-10 18:36:09 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-10 18:36:09 +0100
commite0f9323b9aa98b55f3557086f7b0a17047943f39 (patch)
tree5a2bbcb84b87d2530e804067d72c1bea672412a1 /internal/db/bundb/trace.go
parentadd async test (diff)
downloadgotosocial-e0f9323b9aa98b55f3557086f7b0a17047943f39.tar.xz
test the media manager a bit, add shutdown logic
Diffstat (limited to 'internal/db/bundb/trace.go')
-rw-r--r--internal/db/bundb/trace.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/db/bundb/trace.go b/internal/db/bundb/trace.go
index 3726506a9..9eaad6880 100644
--- a/internal/db/bundb/trace.go
+++ b/internal/db/bundb/trace.go
@@ -20,7 +20,6 @@ package bundb
import (
"context"
- "database/sql"
"time"
"github.com/sirupsen/logrus"
@@ -48,13 +47,5 @@ func (q *debugQueryHook) AfterQuery(_ context.Context, event *bun.QueryEvent) {
"operation": event.Operation(),
})
- if event.Err != nil && event.Err != sql.ErrNoRows {
- // if there's an error the it'll be handled in the application logic,
- // but we can still debug log it here alongside the query
- l = l.WithField("query", event.Query)
- l.Debug(event.Err)
- return
- }
-
l.Tracef("[%s] %s", dur, event.Operation())
}