Skip to content

Commit

Permalink
(NOBIDS) make debug level configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Mar 12, 2024
1 parent eac6f1b commit 58323b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ethstore-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func main() {
daysToReexport := flag.String("days", "", "Days to reexport")
receiptsModeStr := flag.String("receipts-mode", "single", "single or batch")
concurrency := flag.Int("concurrency", 1, "concurrency level to use (1 for no concurrency)")
debugLevel := flag.Uint64("debug-level", 0, "debug level to use for eth.store calculation output")

flag.Parse()

Expand Down Expand Up @@ -92,7 +93,7 @@ func main() {
receiptsMode = ethstore.RECEIPTS_MODE_BATCH
}

ethstore.SetDebugLevel(1000)
ethstore.SetDebugLevel(*debugLevel)
logrus.Infof("using receipts mode %s (%d)", *receiptsModeStr, receiptsMode)
exporter.StartEthStoreExporter(*bnAddress, *enAddress, *updateInterval, *errorInterval, *sleepInterval, startDayReexport, endDayReexport, *concurrency, receiptsMode)
logrus.Println("exiting...")
Expand Down

0 comments on commit 58323b6

Please sign in to comment.