use logrus for logging

This commit is contained in:
Taka Goto
2018-11-21 10:14:11 -06:00
parent 128d20c9bf
commit e8be96a4e7
57 changed files with 79 additions and 83 deletions
@@ -19,8 +19,8 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
log "github.com/sirupsen/logrus"
"io/ioutil"
"log"
)
func TestEveryBlock(t *testing.T) {
@@ -16,7 +16,7 @@ package every_block
import (
"fmt"
"log"
log "github.com/sirupsen/logrus"
"math/big"
"github.com/vulcanize/vulcanizedb/pkg/core"
@@ -50,7 +50,7 @@ func (fe *fetcherError) Error() string {
func newFetcherError(err error, fetchMethod string) *fetcherError {
e := fetcherError{err.Error(), fetchMethod}
log.Println(e.Error())
log.Info(e.Error())
return &e
}
@@ -16,8 +16,8 @@ package every_block
import (
"fmt"
log "github.com/sirupsen/logrus"
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"
"log"
)
type ERC20RepositoryInterface interface {
@@ -16,9 +16,10 @@ package every_block
import (
"fmt"
"log"
"math/big"
log "github.com/sirupsen/logrus"
"github.com/vulcanize/vulcanizedb/examples/erc20_watcher"
"github.com/vulcanize/vulcanizedb/pkg/core"
"github.com/vulcanize/vulcanizedb/pkg/datastore/postgres"