From fae019b974bb81463fe58cc0284bf4c15a4f6638 Mon Sep 17 00:00:00 2001 From: Stephen Akridge Date: Tue, 8 May 2018 13:25:59 -0700 Subject: [PATCH] Add message about trace debugging --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 963921819..8a902bcd9 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,18 @@ Run the test suite: cargo test ``` +Debugging +--- + +There are some useful debug messages in the code, you can enable them on a per-module and per-level +basis with the normal RUST\_LOG environment variable. Run the testnode with this syntax: +```bash +$ RUST_LOG=solana::streamer=debug,solana::accountant_skel=info cat genesis.log | ./target/release/solana-testnode > transactions0.log +``` +to see the debug and info sections for streamer and accountant\_skel respectively. Generally +we are using debug for infrequent debug messages, trace for potentially frequent messages and +info for performance-related logging. + Benchmarking ---