1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

cmd/tools/validate.go: log errors from client.

This commit is contained in:
Henrik Hautakoski 2024-02-07 17:31:44 +01:00
parent 7feee11fad
commit 729860cf76

View file

@ -75,6 +75,8 @@ var validateCmd = &cli.Command{
go func() {
for t := range client.Channel() {
switch msg := t.(type) {
case error:
log.WithError(msg).Error("Error when reading stream")
case message.ActionTrace:
if block_num > 0 {
var diff int32 = int32(msg.BlockNum - block_num)