Skip to content

Commit

Permalink
Merge pull request #27 from coinbase/patrick/less-verbose
Browse files Browse the repository at this point in the history
Better Logging on Reconciler
  • Loading branch information
patrick-ogrady authored May 13, 2020
2 parents 4a871d0 + a185120 commit 2278020
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions reconciler/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"fmt"

"github.com/coinbase/rosetta-sdk-go/parser"
"github.com/coinbase/rosetta-sdk-go/types"
)

// Option is used to overwrite default values in
Expand Down Expand Up @@ -53,8 +52,12 @@ func WithSeenAccounts(seen []*AccountCurrency) Option {
Entry: acct,
})
r.seenAccounts = append(r.seenAccounts, acct)
fmt.Printf("Adding to inactive queue: %s\n", types.PrettyPrintStruct(acct))
}

fmt.Printf(
"Initialized reconciler with %d previously seen accounts\n",
len(r.seenAccounts),
)
}
}

Expand Down
5 changes: 1 addition & 4 deletions reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,8 @@ func (r *Reconciler) reconcileInactiveAccounts(
// When first start syncing, this loop may run before the genesis block is synced.
// If this is the case, we should sleep and try again later instead of exiting.
if err != nil {
log.Println("waiting to start intactive reconciliation until a block is synced...")
time.Sleep(inactiveReconciliationSleep)
log.Printf(
"%s: waiting to start inactive reconciliation until current block set\n",
err.Error(),
)
continue
}

Expand Down

0 comments on commit 2278020

Please sign in to comment.