User Tools

Site Tools


guides:farming:debug_log

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guides:farming:debug_log [2021/09/01 09:12] vleesbanaanguides:farming:debug_log [2021/10/29 12:10] (current) vleesbanaan
Line 1: Line 1:
 ===== Debugging ===== ===== Debugging =====
-FIXME <this page is under construction>  
  
 Before you start debugging, we advise you to use our [[resources:tools:logtool|Harvest Inspector]]. If the inspector finds many errors, follow the steps in this guide to improve your farming.  Before you start debugging, we advise you to use our [[resources:tools:logtool|Harvest Inspector]]. If the inspector finds many errors, follow the steps in this guide to improve your farming. 
Line 6: Line 5:
 ==== How to enable your Chia debug log? ==== ==== 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 the default path is ''~/.chia/mainnet/log/config'' +  - Navigate to the config.yaml file in your .chia folder.  
-  - Open the file called "config"+     For Windows''C:\Users\<username>\.chia\mainnet\config'' 
 +     * For Linux''~/.chia/mainnet/log/config'' 
 +     * For Mac: ''/Users/<username>/.chia/mainnet/config'' 
 +  - Open the file called "config.yaml"
   - Find a line called "log_level: WARNING" and change this to "log_level: INFO" and hit save   - 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+  - 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. 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 Windowsthe default path is ''C:\Users\<username>\.chia\mainnet\log\debug.log''  
-  * For Linux users the default path is ''~/.chia/mainnet/log/debug.log'' +  * For Linux:  the default path is ''~/.chia/mainnet/log/debug.log'' 
-  * For Mac users the default path is ''/Users/<username>/.chia/mainnet/log/debug.log''+  * For Macthe default path is ''/Users/<username>/.chia/mainnet/log/debug.log''
  
 ==== What to look for in the logs? ==== ==== What to look for in the logs? ====
  
-complete list of logging messages can be found here: https://github.com/Chia-Network/chia-blockchain/wiki/Logging-Messages-Reference+complete list of logging messages can be found here: https://github.com/Chia-Network/chia-blockchain/wiki/Logging-Messages-Reference
  
-etc etc 
  
-==== Debugging using Powershell ==== +==== 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. "+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 timing, 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 ==== ==== Third party tools ====
 +Also you can use third-party tools to check your logs. Use at your own risk and consult our [[guides:security|security page]].
 +https://github.com/kubec/chia-log-analyzer
 +
 +
guides/farming/debug_log.1630487577.txt.gz · Last modified: 2021/09/01 09:12 by vleesbanaan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki