This is an old revision of the document!
Table of Contents
Debugging
<this page is under construction>
Before you start debugging, we advise you to use our Harvest Inspector. If the inspector finds many errors, follow the steps in this guide to improve your farming.
How to enable your Chia debug log?
- Navigate to the config.yaml file in your .chia folder. For Windows the default path is
C:\Users\user\.chia\mainnet\config
, for Linux~/.chia/mainnet/log/config
, and for Mac/Users/<username>/.chia/mainnet/config
- Open the file called “config”
- Find a line called “log_level: WARNING” and change this to “log_level: INFO” and hit save
- Restart Chia for the change to take effect
Now you can see detailed information in your Chia debug log, which is found in the chia folder.
- For Windows users the default path is
C:\Users\user\.chia\mainnet\log\debug.log
- For Linux users the default path is
~/.chia/mainnet/log/debug.log
- For Mac users the default path is
/Users/<username>/.chia/mainnet/log/debug.log
What to look for in the logs?
a complete list of logging messages can be found here: https://github.com/Chia-Network/chia-blockchain/wiki/Logging-Messages-Reference
Debugging using Powershell
Scanning your debug log with tail | grep
in Powershell is perhaps the easiest way to aggregate the information you are looking for.
For monitoring your harvester times for example, use
Get-Content -Path “~\.chia\mainnet\log\debug.log” -Wait | Select-String -Pattern “found”
And for finding errors, use
Get-Content -Path “~\.chia\mainnet\log\debug.log” | Select-String -Pattern “error”