cosmos / gaia

Cosmos Hub
https://hub.cosmos.network
Apache License 2.0
475 stars 692 forks source link

improve log readability #3379

Closed stana-miric closed 1 month ago

stana-miric commented 1 month ago

This pr adds a section in readme file related to unsafe-start-local-validator command. The section describes how to prevent logging of misleading log messages that might appear if some node msgs are attempt to be replayed to the blockchain. Since we don't need this replay data because we are creating new block with the new(replaced validator), the content can be deleted and the log wont show the error logs similar to this:

_2:52PM INF Replay: Vote blockID=C80F67CDC3EFDB6E3496605908EFBDEA0A73E58315E9B34A3491C3383702D8F4:1:5ED0B863FBFA extSigLen=0 extensionLen=0 height=22453073 module=consensus peer=7314c477c9d7fea4e2ebf51581f2324971260494 round=0 type=SIGNED_MSG_TYPE_PRECOMMIT 2:52PM INF failed attempting to add vote err="cannot find validator 151 in valSet of size 1: invalid validator index" module=consensus 2:52PM ERR failed to process message err="error adding vote" height=22453074 module=consensus msgtype=*consensus.VoteMessage peer=7314c477c9d7fea4e2ebf51581f2324971260494 round=0