Skip to content

Instantly share code, notes, and snippets.

@ZenGround0
Last active September 24, 2019 23:46
Show Gist options
  • Save ZenGround0/884de1f89de1cbcf394e32047a91a2ae to your computer and use it in GitHub Desktop.
Save ZenGround0/884de1f89de1cbcf394e32047a91a2ae to your computer and use it in GitHub Desktop.
go-filecoin chain stalled log debug
# Use this set of commands for tuning your logs to debug scenarios where your node can't sync the chain
# At a high level if your chain is getting stuck it is because one of 2 things is going wrong
# 1. Your node can't fetch the chain data
# 2. Your node can't correctly process the longest chain
# first quiet all logs to ERROR level
go-filecoin log level error
# listen to the details of chain related subsystems
# logs related to fetching
go-filecoin log level --subsystem=net/block_validator debug
go-filecoin log level --subsystem=peer-tracker debug
go-filecoin log level --subsystem=net.graphsync_fetcher debug
# logs related to scheduling fetched data for processing
go-filecoin log level --subsystem=chain.syncer debug
go-filecoin log level --subsystem=chain.store debug
# logs related to the actual processing
go-filecoin log level --subsystem=consensus.expected debug
go-filecoin log level --subsystem=miner-actor debug
@ZenGround0
Copy link
Author

If this is still too noisy you can selectively reset some subsystems up to INFO or WARNING
Please comment corrections if the subsystem names have changed by the time you are reading this. They are all subject to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment