Removes import alias for logrus
This commit is contained in:
@@ -17,9 +17,8 @@
|
||||
package chunker_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
package event_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
@@ -54,7 +54,7 @@ func (transformer Transformer) Execute(logs []core.HeaderSyncLog) error {
|
||||
logrus.Errorf("error persisting %v record: %v", transformerName, err)
|
||||
return err
|
||||
}
|
||||
log.Debug("Persisted log for " + transformerName)
|
||||
logrus.Debug("Persisted log for " + transformerName)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
package fetcher_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
package repository_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
@@ -17,9 +17,8 @@
|
||||
package storage_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
@@ -22,8 +22,7 @@ package watcher
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/vulcanize/vulcanizedb/libraries/shared/transformer"
|
||||
"github.com/vulcanize/vulcanizedb/pkg/core"
|
||||
@@ -57,7 +56,7 @@ func (watcher *ContractWatcher) AddTransformers(inits interface{}) error {
|
||||
for _, contractTransformer := range watcher.Transformers {
|
||||
err := contractTransformer.Init()
|
||||
if err != nil {
|
||||
log.Print("Unable to initialize transformer:", contractTransformer.GetConfig().Name, err)
|
||||
logrus.Print("Unable to initialize transformer:", contractTransformer.GetConfig().Name, err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
@@ -68,7 +67,7 @@ func (watcher *ContractWatcher) Execute() error {
|
||||
for _, contractTransformer := range watcher.Transformers {
|
||||
err := contractTransformer.Execute()
|
||||
if err != nil {
|
||||
log.Error("Unable to execute transformer:", contractTransformer.GetConfig().Name, err)
|
||||
logrus.Error("Unable to execute transformer:", contractTransformer.GetConfig().Name, err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,9 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func TestShared(t *testing.T) {
|
||||
@@ -32,5 +31,5 @@ func TestShared(t *testing.T) {
|
||||
}
|
||||
|
||||
var _ = BeforeSuite(func() {
|
||||
log.SetOutput(ioutil.Discard)
|
||||
logrus.SetOutput(ioutil.Discard)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user