Skip to content

Commit

Permalink
use a local logger version
Browse files Browse the repository at this point in the history
  • Loading branch information
rybit committed Sep 25, 2019
1 parent 81d0959 commit e8272e1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions http/banlist/banlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import (
"github.com/stretchr/testify/require"
)

func init() {
logrus.SetLevel(logrus.DebugLevel)
}

func TestBanlistMissingFile(t *testing.T) {
bl := newBanlist(tl(t), "not a path")
require.Error(t, bl.update())
Expand Down Expand Up @@ -87,7 +83,9 @@ func TestBanlistBanning(t *testing.T) {
}

func tl(t *testing.T) logrus.FieldLogger {
return logrus.WithField("test", t.Name())
l := logrus.New()
l.SetLevel(logrus.DebugLevel)
return l.WithField("test", t.Name())
}

func testList(t *testing.T, config *Config) *Banlist {
Expand Down

0 comments on commit e8272e1

Please sign in to comment.