diff options
author | 2021-08-27 13:26:45 +0200 | |
---|---|---|
committer | 2021-08-27 13:26:45 +0200 | |
commit | add6eb6e2bb31b28882a5dc72ad143bccd712e99 (patch) | |
tree | 358b7300123cd260dc4e03fc545faafb5cab3308 /testrig/db.go | |
parent | fix new tx within tx (#163) (diff) | |
download | gotosocial-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.go | 4 |
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) } |