Update README.md

This commit is contained in:
jackcmay 2018-11-07 11:19:37 -08:00 committed by GitHub
parent 16d23292dc
commit 8feed96eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -344,14 +344,22 @@ Fullnode Debugging
There are some useful debug messages in the code, you can enable them on a per-module and per-level
basis. Before running a leader or validator set the normal RUST\_LOG environment variable.
For example, to enable info everywhere and debug only in the solana::banking_stage module:
For example
```bash
$ export RUST_LOG=info,solana::banking_stage=debug
```
* To enable `info` everywhere and `debug` only in the solana::banking_stage module:
Generally we are using debug for infrequent debug messages, trace for potentially frequent
messages and info for performance-related logging.
```bash
$ export RUST_LOG=info,solana::banking_stage=debug
```
* To enable BPF program logging:
```bash
$ export RUST_LOG=solana_bpf_loader
```
Generally we are using `debug` for infrequent debug messages, `trace` for potentially frequent
messages and `info` for performance-related logging.
You can also attach to a running process with GDB. The leader's process is named
_solana-fullnode_: