diff --git a/cmd/thor/node/node.go b/cmd/thor/node/node.go index 001e4190d..8ae30b0cc 100644 --- a/cmd/thor/node/node.go +++ b/cmd/thor/node/node.go @@ -409,7 +409,7 @@ func (n *Node) processBlock(newBlock *block.Block, stats *blockStats) (bool, err stats.UpdateQueued(1) case err == errBFTRejected: // TODO: capture metrics - log.Debug(fmt.Sprintf("block rejected by BFT engine\n%v", newBlock.Header())) + log.Debug(fmt.Sprintf("block rejected by BFT engine: %v", newBlock.Header())) case consensus.IsCritical(err): msg := fmt.Sprintf(`failed to process block due to consensus failure \n%v\n`, newBlock.Header()) log.Error(msg, "err", err) diff --git a/docs/usage.md b/docs/usage.md index 92cb768d0..1f40cdc76 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -179,6 +179,7 @@ bin/thor -h | `--disable-pruner` | Disable state pruner to keep all history | | `--bootnode` | Comma-separated list of bootnode IDs | | `--enable-metrics` | Enables the metrics server | +| `--metrics-addr` | Metrics service listening address | | `--help, -h` | Show help | | `--version, -v` | Print the version |