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
+2
View File
@@ -18,6 +18,7 @@ import (
"bytes"
"encoding/json"
"fmt"
log "github.com/sirupsen/logrus"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
@@ -30,6 +31,7 @@ type FrobConverter struct{}
func (FrobConverter) ToEntities(contractAbi string, ethLogs []types.Log) ([]interface{}, error) {
var entities []interface{}
log.Info("blah")
for _, ethLog := range ethLogs {
entity := FrobEntity{}
address := ethLog.Address
+1 -1
View File
@@ -15,8 +15,8 @@
package frob_test
import (
log "github.com/sirupsen/logrus"
"io/ioutil"
"log"
"testing"
. "github.com/onsi/ginkgo"