From add6eb6e2bb31b28882a5dc72ad143bccd712e99 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 27 Aug 2021 13:26:45 +0200 Subject: 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 --- testrig/db.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'testrig/db.go') 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) } -- cgit v1.2.3