Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong log format when send stop signal to node #637

Open
wirwolf opened this issue Jun 16, 2021 · 1 comment
Open

wrong log format when send stop signal to node #637

wirwolf opened this issue Jun 16, 2021 · 1 comment

Comments

@wirwolf
Copy link
Contributor

wirwolf commented Jun 16, 2021

node version: 2.4.0
in config toml

# Output level for logging, including package level options
log_level = "consensus:info,main:info,state:info,*:error"
log_format = "json"
# Path to file for logs, "stdout" by default
log_path = "stdout"

when i send stop signal kill -15 {pid} node send plain text to stdout

I[2021-06-16|09:23:30.894] captured terminated, exiting...              module=consensus
2021/06/16 09:23:30 Stopping Node
2021/06/16 09:23:31 Node Stopped with error: <nil>

example log:

{"_msg":"executed block","height":3282856,"level":"info","module":"state","num_invalid_txs":0,"num_valid_txs":1,"ts":"2021-06-16T09:23:30.870960505Z"}
{"_msg":"committed state","app_hash":"E3C347328458DB9130680E0102F04AB6FB4DF6638BBED3FB16102FADEDB5466C","height":3282856,"level":"info","module":"state","num_txs":1,"ts":"2021-06-16T09:23:30.883035837Z"}
I[2021-06-16|09:23:30.894] captured terminated, exiting...              module=consensus 
{"_msg":"executed block","height":3282857,"level":"info","module":"state","num_invalid_txs":0,"num_valid_txs":1,"ts":"2021-06-16T09:23:30.897915863Z"}
{"_msg":"committed state","app_hash":"C8A374EF1A420605BEEAC04FC2E1C9A5AF72CEB136F50B93D4FF787A95AFBD98","height":3282857,"level":"info","module":"state","num_txs":1,"ts":"2021-06-16T09:23:30.910208528Z"}
2021/06/16 09:23:30 Stopping Node
{"_msg":"Stopping peer for error","err":"read tcp 10.42.0.155:35458->62.210.102.230:26656: use of closed network connection","level":"error","module":"p2p","peer":"Peer{MConn{62.210.102.230:26656} c74e0ce1824329c3fb51691ef63208dc1d195af1 out}","ts":"2021-06-16T09:23:30.910402061Z"}
{"_msg":"error while stopping peer","error":"already stopped","level":"error","module":"p2p","ts":"2021-06-16T09:23:30.910457022Z"}
{"_msg":"Stopping Consensus service","impl":"ConsensusReactor","level":"info","module":"consensus","ts":"2021-06-16T09:23:30.911299286Z"}
{"_msg":"Not stopping State service -- has not been started yet","impl":"ConsensusState","level":"error","module":"consensus","ts":"2021-06-16T09:23:30.911342316Z"}
{"_msg":"Error stopping consensus state","err":"not started","level":"error","module":"consensus","ts":"2021-06-16T09:23:30.911369967Z"}
{"_msg":"Error serving server","err":"accept tcp 127.0.0.1:26657: use of closed network connection","level":"error","module":"tendermint","ts":"2021-06-16T09:23:30.911407087Z"}
{"_msg":"Stopped accept routine, as transport is closed","level":"error","module":"p2p","numPeers":0,"ts":"2021-06-16T09:23:30.911399947Z"}
{"_msg":"Stopping gossipDataRoutine for peer","level":"info","module":"consensus","peer":"Peer{MConn{62.210.102.230:26656} c74e0ce1824329c3fb51691ef63208dc1d195af1 out}","ts":"2021-06-16T09:23:30.99150352Z"}
{"_msg":"Stopping gossipVotesRoutine for peer","level":"info","module":"consensus","peer":"Peer{MConn{62.210.102.230:26656} c74e0ce1824329c3fb51691ef63208dc1d195af1 out}","ts":"2021-06-16T09:23:30.99149103Z"}
2021/06/16 09:23:31 Node Stopped with error: <nil>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant