Skip to content

Commit 49b8384

Browse files
authored
Merge pull request #597 from opentensor/feat/thewhaleking/debug-cmd
Debug log
2 parents 8a6c025 + 8be86e7 commit 49b8384

File tree

6 files changed

+326
-29
lines changed

6 files changed

+326
-29
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,22 @@ BTCLI accepts a few environment variables that can alter how it works:
174174
- DISK_CACHE (default 0, also settable in config): If set to 1 (or set in config), will use disk caching for various safe-cachable substrate
175175
calls (such as block number to block hash mapping), which can speed up subsequent calls.
176176
- BTCLI_CONFIG_PATH (default `~/.bittensor/config.yml`): This will set the config file location, creating if it does not exist.
177+
- BTCLI_DEBUG_FILE (default `~/.bittensor/debug.txt`): The file stores the most recent's command's debug log.
178+
179+
---
180+
181+
## Debugging
182+
BTCLI will store a debug log for every command run. This file is overwritten for each new command run. The default location
183+
of this file is `~/.bittensor/debug.txt` and can be set with the `BTCLI_DEBUG_FILE` env var (see above section).
184+
185+
The debug log will **NOT** contain any sensitive data (private keys), and is intended to be sent to the developers
186+
for debugging. This file contains basic information about the command being run, the config, and the back and forth of requests and responses
187+
to and from the chain.
188+
189+
If you encounter an issue, and would like to save the file somewhere it won't be overwritten, run `btcli --debug`,
190+
and set the save file location. We recommend doing this first before anything, and then starting your debugging with
191+
us on our [Discord](https://discord.gg/bittensor), or by opening an issue on [GitHub](https://github.com/opentensor/btcli/issues/new)
192+
(where you can also upload your debug file).
177193

178194
---
179195

0 commit comments

Comments
 (0)