Skip to content

Commit 73b0e6c

Browse files
committed
feat(logging): disable migrator logging during test
1 parent 65aad44 commit 73b0e6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/services/sqlstore/migrations/migrations_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"github.com/go-xorm/xorm"
77
. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
88
"github.com/grafana/grafana/pkg/services/sqlstore/sqlutil"
9+
"github.com/inconshreveable/log15"
910

1011
. "github.com/smartystreets/goconvey/convey"
1112
)
@@ -28,7 +29,7 @@ func TestMigrations(t *testing.T) {
2829
sqlutil.CleanDB(x)
2930

3031
mg := NewMigrator(x)
31-
//mg.LogLevel = log.DEBUG
32+
mg.Logger.SetHandler(log15.DiscardHandler())
3233
AddMigrations(mg)
3334

3435
err = mg.Start()

0 commit comments

Comments
 (0)