User Tools

Site Tools


guides:farming:debug_log

This is an old revision of the document!


Debugging

FIXME <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?

  1. 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
  2. Open the file called “config”
  3. Find a line called “log_level: WARNING” and change this to “log_level: INFO” and hit save
  4. 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”

Third party tools

Also you can use third-party tools to check your logs. Use at your own risk and consult our security page. https://github.com/kubec/chia-log-analyzer

guides/farming/debug_log.1630570605.txt.gz · Last modified: 2021/09/02 08:16 by vleesbanaan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki