Add transformer name to config for logging in factory transformer
This commit is contained in:
parent
46d8ea8d97
commit
32654ffabc
@ -55,7 +55,7 @@ func (transformer Transformer) Execute() error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Printf("Fetching vat move event logs for %d headers \n", len(missingHeaders))
|
||||
log.Printf("Fetching %v event logs for %d headers \n", transformer.Config.TransformerName, len(missingHeaders))
|
||||
for _, header := range missingHeaders {
|
||||
// Grab topics from config
|
||||
var topics [][]common.Hash
|
||||
|
@ -28,6 +28,7 @@ type Transformer interface {
|
||||
type TransformerInitializer func(db *postgres.DB, blockChain core.BlockChain) Transformer
|
||||
|
||||
type TransformerConfig struct {
|
||||
TransformerName string
|
||||
ContractAddresses []string
|
||||
ContractAbi string
|
||||
Topics []string
|
||||
|
Loading…
Reference in New Issue
Block a user