diff --git a/internal/media/util_test.go b/internal/media/util_test.go index 59a7b62ff..c54fb6f2c 100644 --- a/internal/media/util_test.go +++ b/internal/media/util_test.go @@ -19,6 +19,7 @@ package media import ( + "github.com/sirupsen/logrus" "github.com/superseriousbusiness/gotosocial/internal/log" "io/ioutil" "testing" @@ -37,7 +38,7 @@ type MediaUtilTestSuite struct { // SetupSuite sets some variables on the suite that we can use as consts (more or less) throughout func (suite *MediaUtilTestSuite) SetupSuite() { // doesn't use testrig.InitTestLog() helper to prevent import cycle - err := log.Initialize("trace") + err := log.Initialize(logrus.TraceLevel.String()) if err != nil { panic(err) } diff --git a/testrig/log.go b/testrig/log.go index 374a3db79..5db12e6e9 100644 --- a/testrig/log.go +++ b/testrig/log.go @@ -19,12 +19,13 @@ package testrig import ( + "github.com/sirupsen/logrus" "github.com/superseriousbusiness/gotosocial/internal/log" ) // InitTestLog sets the global logger to trace level for logging func InitTestLog() { - err := log.Initialize("trace") + err := log.Initialize(logrus.TraceLevel.String()) if err != nil { panic(err) }