diff options
author | 2021-12-12 18:00:20 +0100 | |
---|---|---|
committer | 2021-12-12 18:00:20 +0100 | |
commit | c111b239f7d102ac24a79fbef420af46dfec66f9 (patch) | |
tree | 813f5c4501a6e5048fb2922e099ce92d35b33b14 /internal/media/util_test.go | |
parent | add systemd service example to packaging (#342) (diff) | |
download | gotosocial-c111b239f7d102ac24a79fbef420af46dfec66f9.tar.xz |
Add optional syslog logrus hook (#343)
* add optional syslog logrus hook
* document syslog
Diffstat (limited to 'internal/media/util_test.go')
-rw-r--r-- | internal/media/util_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/media/util_test.go b/internal/media/util_test.go index c54fb6f2c..fb36e1476 100644 --- a/internal/media/util_test.go +++ b/internal/media/util_test.go @@ -19,11 +19,13 @@ package media import ( - "github.com/sirupsen/logrus" - "github.com/superseriousbusiness/gotosocial/internal/log" "io/ioutil" "testing" + "github.com/spf13/viper" + "github.com/superseriousbusiness/gotosocial/internal/config" + "github.com/superseriousbusiness/gotosocial/internal/log" + "github.com/stretchr/testify/suite" ) @@ -38,11 +40,11 @@ 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(logrus.TraceLevel.String()) + viper.Set(config.Keys.LogLevel, "trace") + err := log.Initialize() if err != nil { panic(err) } - } func (suite *MediaUtilTestSuite) TearDownSuite() { |