summaryrefslogtreecommitdiff
path: root/testrig/db.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-27 13:26:45 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-27 13:26:45 +0200
commitadd6eb6e2bb31b28882a5dc72ad143bccd712e99 (patch)
tree358b7300123cd260dc4e03fc545faafb5cab3308 /testrig/db.go
parentfix new tx within tx (#163) (diff)
downloadgotosocial-add6eb6e2bb31b28882a5dc72ad143bccd712e99.tar.xz
Gin logging (#165)
* start messing around with logger * more messing about * fix error with instance not created on startup (#156) * set logger * log user agent * finalize logging * go fmt * start messing around with logger * more messing about * set logger * log user agent * finalize logging * go fmt
Diffstat (limited to 'testrig/db.go')
-rw-r--r--testrig/db.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/testrig/db.go b/testrig/db.go
index b0e2afd04..52a1af6e9 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -66,9 +66,7 @@ func NewTestDB() db.DB {
config.DBConfig.Address = alternateAddress
}
- l := logrus.New()
- l.SetLevel(logrus.TraceLevel)
- testDB, err := bundb.NewBunDBService(context.Background(), config, l)
+ testDB, err := bundb.NewBunDBService(context.Background(), config, NewTestLog())
if err != nil {
logrus.Panic(err)
}