Browse Source

Merge branch 'new-logger' into alerting_definitions

Conflicts:
	pkg/services/sqlstore/migrations/migrations_test.go
Torkel Ödegaard 9 years ago
parent
commit
e4ea24dfc4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pkg/services/sqlstore/migrations/migrations_test.go

+ 2 - 1
pkg/services/sqlstore/migrations/migrations_test.go

@@ -6,6 +6,7 @@ import (
 	"github.com/go-xorm/xorm"
 	. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
 	"github.com/grafana/grafana/pkg/services/sqlstore/sqlutil"
+	"github.com/inconshreveable/log15"
 
 	. "github.com/smartystreets/goconvey/convey"
 	//"github.com/grafana/grafana/pkg/log"
@@ -29,7 +30,7 @@ func TestMigrations(t *testing.T) {
 			sqlutil.CleanDB(x)
 
 			mg := NewMigrator(x)
-			//mg.LogLevel = log.ERROR
+			mg.Logger.SetHandler(log15.DiscardHandler())
 			AddMigrations(mg)
 
 			err = mg.Start()