Browse Source

change index block log to info (#6290) (#6294)

## Description

Change log from error to info for indexing blocks

(cherry picked from commit 32ee737d42)

Co-authored-by: Marko <marbar3778@yahoo.com>
pull/6315/head
mergify[bot] 4 years ago
committed by GitHub
parent
commit
6c0c27320c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      state/txindex/indexer_service.go

+ 1
- 1
state/txindex/indexer_service.go View File

@ -79,7 +79,7 @@ func (is *IndexerService) OnStart() error {
if err := is.blockIdxr.Index(eventDataHeader); err != nil { if err := is.blockIdxr.Index(eventDataHeader); err != nil {
is.Logger.Error("failed to index block", "height", height, "err", err) is.Logger.Error("failed to index block", "height", height, "err", err)
} else { } else {
is.Logger.Error("indexed block", "height", height)
is.Logger.Info("indexed block", "height", height)
} }
if err = is.txIdxr.AddBatch(batch); err != nil { if err = is.txIdxr.AddBatch(batch); err != nil {


Loading…
Cancel
Save