Add logging for every transformer

- Also add drip file transformer initializer
This commit is contained in:
Rob Mulholand
2018-09-19 11:00:20 -05:00
parent a735698f77
commit 56c45b6841
26 changed files with 125 additions and 3 deletions
+1
View File
@@ -51,6 +51,7 @@ func (t DentTransformer) Execute() error {
config := t.Config
topics := [][]common.Hash{{common.HexToHash(shared.DentFunctionSignature)}}
headers, err := t.Repository.MissingHeaders(config.StartingBlockNumber, config.EndingBlockNumber)
log.Printf("Fetching dent event logs for %d headers \n", len(headers))
for _, header := range headers {
ethLogs, err := t.Fetcher.FetchLogs(config.ContractAddress, topics, header.BlockNumber)