From 4fbde836d4b4c3482136f26e0532e2b6372e1a25 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Thu, 24 Oct 2019 13:12:19 -0500 Subject: [PATCH] log sql.ErrNoRows which I suspect is what is leading to the flaky test --- pkg/contract_watcher/header/transformer/transformer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/contract_watcher/header/transformer/transformer.go b/pkg/contract_watcher/header/transformer/transformer.go index afac986f..b91d98c8 100644 --- a/pkg/contract_watcher/header/transformer/transformer.go +++ b/pkg/contract_watcher/header/transformer/transformer.go @@ -128,6 +128,7 @@ func (tr *Transformer) Init() error { firstBlock, retrieveErr := tr.Retriever.RetrieveFirstBlock() if retrieveErr != nil { if retrieveErr == sql.ErrNoRows { + logrus.Error(retrieveErr) firstBlock = 0 } else { return fmt.Errorf("error retrieving first block: %s", retrieveErr.Error())