From f2dd7e0a081b8afcb3774a2660d6337a3ff0199d Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:25:08 +0200 Subject: [PATCH 1/9] Improve help messages --- pbtc/cli.yml | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/pbtc/cli.yml b/pbtc/cli.yml index b62ce6fd..8ae5edbe 100644 --- a/pbtc/cli.yml +++ b/pbtc/cli.yml @@ -1,109 +1,109 @@ name: pbtc version: "0.1.0" -author: Parity Technologies -about: Parity bitcoin client +author: Parity Technologies +about: Parity Bitcoin client args: - testnet: long: testnet - help: Use the test network + help: Use the test network (Testnet3). - regtest: long: regtest - help: Use private network for regtest + help: Use a private network for regression tests. - segwit2x: long: segwit2x - help: Enable SegWit2x verification rules + help: Enable SegWit2x verification rules. - bitcoin-cash: long: bitcoin-cash - help: Use Bitcoin Cash verification rules + help: Use Bitcoin Cash verification rules. - connect: short: c long: connect value_name: IP - help: Connect only to the specified node + help: Connect only to the specified node. takes_value: true - seednode: short: s long: seednode value_name: IP - help: Connect to a node to retrieve peer addresses, and disconnect + help: Connect to a seed-node to retrieve peer addresses, and disconnect. takes_value: true - port: long: port value_name: PORT - help: Listen for connections on PORT + help: Listen for connections on PORT. takes_value: true - print-to-console: long: print-to-console - help: Send sync info to console + help: Show synchronization information in your console. - data-dir: short: d long: data-dir value_name: PATH - help: Specify the database & configuration directory PATH + help: Specify the database and configuration directory PATH. takes_value: true - db-cache: long: db-cache value_name: SIZE - help: Sets db cache size + help: Sets the database cache size. takes_value: true - only-net: long: only-net value_name: NET - help: Only connect to nodes in network (ipv4 or ipv6) + help: Only connect to nodes in network version (ipv4 or ipv6). takes_value: true - no-jsonrpc: long: no-jsonrpc - help: Disable the JSON-RPC API server + help: Disable the JSON-RPC API server. - jsonrpc-port: long: jsonrpc-port - help: The port portion of the JSONRPC API server + help: Specify the PORT for the JSONRPC API server. takes_value: true value_name: PORT - jsonrpc-interface: long: jsonrpc-interface - help: The hostname portion of the JSONRPC API server + help: The hostname portion of the JSONRPC API server. takes_value: true value_name: INTERFACE - jsonrpc-cors: long: jsonrpc-cors - help: Specify CORS header for JSON-RPC API responses + help: Specify CORS header for JSON-RPC API responses. takes_value: true value_name: URL - jsonrpc-apis: long: jsonrpc-apis - help: Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API name. + help: Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API names. takes_value: true value_name: APIS - jsonrpc-hosts: long: jsonrpc-hosts - help: List of allowed Host header values + help: List of allowed Host header values. takes_value: true value_name: HOSTS - blocknotify: long: blocknotify - help: Execute command when the best block changes (%s in cmd is replaced by block hash) + help: Execute command when the best block changes (%s in cmd is replaced by the block hash). takes_value: true value_name: command - verification-level: long: verification-level - help: Blocks verification level - full (default), header (scripts are not verified), none (no verification at all) + help: Sets the Blocks verification level to full (default), header (scripts are not verified), or none (no verification at all). takes_value: true value_name: LEVEL - verification-edge: long: verification-edge - help: Non-default verification-level is applied until block with given hash is met. + help: Non-default verification-level is applied until a block with given hash is met. takes_value: true value_name: BLOCK subcommands: - import: - about: Import blocks from bitcoin core database + about: Import blocks from a Bitcoin Core database. args: - PATH: required: true - help: Path of the bitcoin core database + help: Path of the Bitcoin Core database. - rollback: - about: Rollback database to given canon-chain block + about: Rollback the database to given canonical-chain block. args: - BLOCK: required: true - help: Either block hash, or block number + help: Either block hash, or block number. From dfb7d2b637b557f0373db7e416126c4403c00029 Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:25:30 +0200 Subject: [PATCH 2/9] Update README with new commands --- README.md | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 56e38c4e..03026802 100644 --- a/README.md +++ b/README.md @@ -171,37 +171,42 @@ Full list of cli options, which is available under `pbtc --help` ``` pbtc 0.1.0 -Parity Technologies -Parity bitcoin client +Parity Technologies +Parity Bitcoin client USAGE: pbtc [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS: + --bitcoin-cash Use Bitcoin Cash verification rules. -h, --help Prints help information - --no-jsonrpc Disable the JSON-RPC API server - --print-to-console Send sync info to console - --regtest Use private network for regtest - --testnet Use the test network + --no-jsonrpc Disable the JSON-RPC API server. + --print-to-console Show synchronization information in your console. + --regtest Use a private network for regression tests. + --segwit2x Enable SegWit2x verification rules. + --testnet Use the test network (Testnet3). -V, --version Prints version information OPTIONS: - --blocknotify Execute command when the best block changes (%s in cmd is replaced by block hash) - -c, --connect Connect only to the specified node - -d, --data-dir Specify the database & configuration directory PATH - --db-cache Sets db cache size - --jsonrpc-apis Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API name. - --jsonrpc-cors Specify CORS header for JSON-RPC API responses - --jsonrpc-hosts List of allowed Host header values - --jsonrpc-interface The hostname portion of the JSONRPC API server - --jsonrpc-port The port portion of the JSONRPC API server - --only-net Only connect to nodes in network (ipv4 or ipv6) - --port Listen for connections on PORT - -s, --seednode Connect to a node to retrieve peer addresses, and disconnect + --blocknotify Execute command when the best block changes (%s in cmd is replaced by the block hash). + -c, --connect Connect only to the specified node. + -d, --data-dir Specify the database and configuration directory PATH. + --db-cache Sets the database cache size. + --jsonrpc-apis Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API names. + --jsonrpc-cors Specify CORS header for JSON-RPC API responses. + --jsonrpc-hosts List of allowed Host header values. + --jsonrpc-interface The hostname portion of the JSONRPC API server. + --jsonrpc-port Specify the PORT for the JSONRPC API server. + --only-net Only connect to nodes in network version (ipv4 or ipv6). + --port Listen for connections on PORT. + -s, --seednode Connect to a seed-node to retrieve peer addresses, and disconnect. + --verification-edge Non-default verification-level is applied until a block with given hash is met. + --verification-level Sets the Blocks verification level to full (default), header (scripts are not verified), or none (no verification at all). SUBCOMMANDS: - help Prints this message or the help of the given subcommand(s) - import Import blocks from bitcoin core database + help Prints this message or the help of the given subcommand(s) + import Import blocks from a Bitcoin Core database. + rollback Rollback the database to given canonical-chain block. ``` ## JSON-RPC From f1145d58c8b29343244d364095a79320d83fa0d5 Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:26:44 +0200 Subject: [PATCH 3/9] Use upper-case COMMAND value --- README.md | 2 +- pbtc/cli.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 03026802..f062d2b3 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ FLAGS: -V, --version Prints version information OPTIONS: - --blocknotify Execute command when the best block changes (%s in cmd is replaced by the block hash). + --blocknotify Execute COMMAND when the best block changes (%s in cmd is replaced by the block hash). -c, --connect Connect only to the specified node. -d, --data-dir Specify the database and configuration directory PATH. --db-cache Sets the database cache size. diff --git a/pbtc/cli.yml b/pbtc/cli.yml index 8ae5edbe..38dd2423 100644 --- a/pbtc/cli.yml +++ b/pbtc/cli.yml @@ -81,9 +81,9 @@ args: value_name: HOSTS - blocknotify: long: blocknotify - help: Execute command when the best block changes (%s in cmd is replaced by the block hash). + help: Execute COMMAND when the best block changes (%s in COMMAND is replaced by the block hash). takes_value: true - value_name: command + value_name: COMMAND - verification-level: long: verification-level help: Sets the Blocks verification level to full (default), header (scripts are not verified), or none (no verification at all). From c7abdcd2af60991a5866e50c509f89c65d0e256b Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:36:26 +0200 Subject: [PATCH 4/9] Default to default logging sync=info --- pbtc/cli.yml | 7 ++++--- pbtc/config.rs | 6 +++--- pbtc/main.rs | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pbtc/cli.yml b/pbtc/cli.yml index 38dd2423..f96088f8 100644 --- a/pbtc/cli.yml +++ b/pbtc/cli.yml @@ -32,9 +32,10 @@ args: value_name: PORT help: Listen for connections on PORT. takes_value: true - - print-to-console: - long: print-to-console - help: Show synchronization information in your console. + - quiet: + short: q + long: quiet + help: Do not show any synchronization information in the console. - data-dir: short: d long: data-dir diff --git a/pbtc/config.rs b/pbtc/config.rs index 542a2061..c145512a 100644 --- a/pbtc/config.rs +++ b/pbtc/config.rs @@ -18,7 +18,7 @@ pub struct Config { pub port: u16, pub connect: Option, pub seednodes: Vec, - pub print_to_console: bool, + pub quiet: bool, pub inbound_connections: u32, pub outbound_connections: u32, pub p2p_threads: usize, @@ -34,7 +34,7 @@ pub struct Config { pub const DEFAULT_DB_CACHE: usize = 512; pub fn parse(matches: &clap::ArgMatches) -> Result { - let print_to_console = matches.is_present("print-to-console"); + let quiet = matches.is_present("quiet"); let magic = match (matches.is_present("testnet"), matches.is_present("regtest")) { (true, false) => Magic::Testnet, (false, true) => Magic::Regtest, @@ -139,7 +139,7 @@ pub fn parse(matches: &clap::ArgMatches) -> Result { }; let config = Config { - print_to_console: print_to_console, + quiet: quiet, magic: magic, consensus: consensus, services: services, diff --git a/pbtc/main.rs b/pbtc/main.rs index 39613c31..24139fbb 100644 --- a/pbtc/main.rs +++ b/pbtc/main.rs @@ -52,7 +52,7 @@ fn run() -> Result<(), String> { let matches = clap::App::from_yaml(yaml).get_matches(); let cfg = try!(config::parse(&matches)); - if cfg.print_to_console { + if !cfg.quiet { if cfg!(windows) { logs::init(LOG_INFO, logs::DateLogFormatter); } else { From 904db19ec0c6e62d9f1a6f797e7a9848a141cb6b Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:44:04 +0200 Subject: [PATCH 5/9] Update README to reflect changes to logging. --- README.md | 66 ++++++++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index f062d2b3..a2c8438a 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Windows binaries can be downloaded from [rust-lang website](https://www.rust-lan #### Install C and C++ compilers -You will need the cc and gcc compilers to build some of the dependencies +You will need the cc and gcc compilers to build some of the dependencies. ``` sudo apt-get update @@ -59,14 +59,14 @@ sudo apt-get install build-essential #### Clone and build pbtc -Now let's clone `pbtc` and enter it's directory +Now let's clone `pbtc` and enter it's directory: ``` git clone https://github.com/paritytech/parity-bitcoin cd parity-bitcoin ``` -`pbtc` can be build in two modes. `--debug` and `--release`. Debug is the default +`pbtc` can be build in two modes. `--debug` and `--release`. Debug is the default. ``` # builds pbtc in debug mode @@ -78,7 +78,7 @@ cargo build -p pbtc cargo build -p pbtc --release ``` -`pbtc` is now available at either `./target/debug/pbtc` or `./target/release/pbtc` +`pbtc` is now available at either `./target/debug/pbtc` or `./target/release/pbtc`. ## Installing the snap @@ -90,7 +90,7 @@ sudo snap install parity-bitcoin --edge ## Running tests -`pbtc` has internal unit tests and it conforms to external integration tests +`pbtc` has internal unit tests and it conforms to external integration tests. #### Running unit tests @@ -108,13 +108,13 @@ Running integration tests is automated, as regtests repo is one of the submodule git submodule update --init ``` -Now we can run them +Now we can run them: ``` ./tools/regtests.sh ``` -It's also possible to run regtests manually +It's also possible to run regtests manually: ``` # let's start pbtc in regtest compatible mode @@ -130,24 +130,24 @@ java -jar pull-tests-f56eec3.jar ## Going online -By default parity connects to bitcoind seednodes. Full list is [here](./pbtc/seednodes.rs) +By default parity connects to bitcoind seednodes. Full list is [here](./pbtc/seednodes.rs). -To start syncing the mainnet, just start the client +To start syncing the mainnet, just start the client: ``` ./target/release/pbtc ``` -To start syncing the testnet +To start syncing the testnet: ``` ./target/release/pbtc --testnet ``` -To print syncing progress add `--print-to-console` flag +To not print any syncing progress add `--quiet` flag: ``` -./target/release/pbtc --print-to-console +./target/release/pbtc --quiet ``` ## Importing bitcoind database @@ -155,19 +155,19 @@ To print syncing progress add `--print-to-console` flag It it is possible to import existing bitcoind database: ``` -# where $BITCOIND_DB is path to your bitcoind database eg. "/Users/marek/Library/Application Support" -./target/release/pbtc --print-to-console import "$BITCOIND_DB/Bitcoin/blocks" +# where $BITCOIND_DB is path to your bitcoind database, e.g., "/Users/user/Library/Application Support" +./target/release/pbtc import "$BITCOIND_DB/Bitcoin/blocks" ``` By default import verifies imported the blocks. You can disable this, by adding `--skip-verification flag. ``` -./target/release/pbtc --print-to-console import "#BITCOIND_DB/Bitcoin/blocks" --skip-verification +./target/release/pbtc import "#BITCOIND_DB/Bitcoin/blocks" --skip-verification ``` ## Command line interface -Full list of cli options, which is available under `pbtc --help` +Full list of CLI options, which is available under `pbtc --help`: ``` pbtc 0.1.0 @@ -178,17 +178,17 @@ USAGE: pbtc [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS: - --bitcoin-cash Use Bitcoin Cash verification rules. - -h, --help Prints help information - --no-jsonrpc Disable the JSON-RPC API server. - --print-to-console Show synchronization information in your console. - --regtest Use a private network for regression tests. - --segwit2x Enable SegWit2x verification rules. - --testnet Use the test network (Testnet3). - -V, --version Prints version information + --bitcoin-cash Use Bitcoin Cash verification rules. + -h, --help Prints help information + --no-jsonrpc Disable the JSON-RPC API server. + -q, --quiet Do not show any synchronization information in the console. + --regtest Use a private network for regression tests. + --segwit2x Enable SegWit2x verification rules. + --testnet Use the test network (Testnet3). + -V, --version Prints version information OPTIONS: - --blocknotify Execute COMMAND when the best block changes (%s in cmd is replaced by the block hash). + --blocknotify Execute COMMAND when the best block changes (%s in COMMAND is replaced by the block hash). -c, --connect Connect only to the specified node. -d, --data-dir Specify the database and configuration directory PATH. --db-cache Sets the database cache size. @@ -217,17 +217,13 @@ TODO This is a section only for dev / power users. -You can enable detailed client logging by setting env variable `RUST_LOG` - -eg. +You can enable detailed client logging by setting env variable `RUST_LOG`, e.g., ``` -RUST_LOG=verification=info ./target/release/pbtc +RUST_LOG=verification=info ./target/release/pbtc --quiet ``` -`pbtc` started with this env variable will print all logs comming from `verification` module with verbosity `info` or higher - -Available log levels: +`pbtc` started with this env variable will print all logs comming from `verification` module with verbosity `info` or higher. Available log levels are: - `error` - `warn` @@ -235,13 +231,13 @@ Available log levels: - `debug` - `trace` -It's also possible to start logging from multiple modules in the same time +It's also possible to start logging from multiple modules in the same time: ``` -RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace +RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/pbtc --quiet ``` -*note* `RUST_LOG` does not work together with command line option `--print-to-console` +**Note:** `RUST_LOG` does only work together with command line option `--quiet` which will surpress the default `sync=info` logging. ## Internal documentation From af715abe2ab20ca7a16a6bc6c7ef104b1e21f199 Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Tue, 29 Aug 2017 15:52:21 +0200 Subject: [PATCH 6/9] Run README through a spell-checker. :) --- README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a2c8438a..908124ba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# parity-bitcoin -The Parity Bitcoin client +# The Parity Bitcoin client. [![Build Status][travis-image]][travis-url] [![Snap Status](https://build.snapcraft.io/badge/paritytech/parity-bitcoin.svg)](https://build.snapcraft.io/user/paritytech/parity-bitcoin) @@ -38,7 +37,7 @@ Minimal supported version is `rustc 1.16.0 (30cf806ef 2017-03-10)` #### Install rustc and cargo -Both `rustc` and `cargo` are a part of rust toolchain. +Both `rustc` and `cargo` are a part of rust tool-chain. An easy way to install the stable binaries for Linux and Mac is to run this in your shell: @@ -94,7 +93,7 @@ sudo snap install parity-bitcoin --edge #### Running unit tests -Assuming that repo is already cloned, we can run unit tests with this command: +Assuming that repository is already cloned, we can run unit tests with this command: ``` ./tools/test.sh @@ -102,7 +101,7 @@ Assuming that repo is already cloned, we can run unit tests with this command: #### Running external integration tests -Running integration tests is automated, as regtests repo is one of the submodules. Let's download it first: +Running integration tests is automated, as the regtests repository is one of the submodules. Let's download it first: ``` git submodule update --init @@ -130,9 +129,9 @@ java -jar pull-tests-f56eec3.jar ## Going online -By default parity connects to bitcoind seednodes. Full list is [here](./pbtc/seednodes.rs). +By default parity connects to bitcoind-seednodes. Full list is [here](./pbtc/seednodes.rs). -To start syncing the mainnet, just start the client: +To start syncing the main network, just start the client: ``` ./target/release/pbtc @@ -152,7 +151,7 @@ To not print any syncing progress add `--quiet` flag: ## Importing bitcoind database -It it is possible to import existing bitcoind database: +It it is possible to import existing `bitcoind` database: ``` # where $BITCOIND_DB is path to your bitcoind database, e.g., "/Users/user/Library/Application Support" @@ -215,15 +214,15 @@ TODO ## Logging -This is a section only for dev / power users. +This is a section only for developers and power users. -You can enable detailed client logging by setting env variable `RUST_LOG`, e.g., +You can enable detailed client logging by setting the environment variable `RUST_LOG`, e.g., ``` RUST_LOG=verification=info ./target/release/pbtc --quiet ``` -`pbtc` started with this env variable will print all logs comming from `verification` module with verbosity `info` or higher. Available log levels are: +`pbtc` started with this environment variable will print all logs coming from `verification` module with verbosity `info` or higher. Available log levels are: - `error` - `warn` @@ -237,7 +236,7 @@ It's also possible to start logging from multiple modules in the same time: RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/pbtc --quiet ``` -**Note:** `RUST_LOG` does only work together with command line option `--quiet` which will surpress the default `sync=info` logging. +**Note:** `RUST_LOG` does only work together with command line option `--quiet` which will suppress the default `sync=info` logging. ## Internal documentation From 8c7ce991eb8e85a149f39b5441a537c07d8adb10 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 1 Sep 2017 14:04:33 +0300 Subject: [PATCH 7/9] honour RUST_LOG when running without '-q' option --- logs/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/logs/src/lib.rs b/logs/src/lib.rs index 4e81986d..217bb472 100644 --- a/logs/src/lib.rs +++ b/logs/src/lib.rs @@ -3,6 +3,7 @@ extern crate log; extern crate env_logger; extern crate time; +use std::env; use ansi_term::Colour as Color; use log::{LogRecord, LogLevel}; use env_logger::LogBuilder; @@ -46,7 +47,12 @@ impl LogFormatter for DateAndColorLogFormatter { pub fn init(filters: &str, formatter: T) where T: LogFormatter { let mut builder = LogBuilder::new(); - builder.parse(filters); + let filters = match env::var("RUST_LOG") { + Ok(env_filters) => format!("{},{}", env_filters, filters), + Err(_) => filters.into(), + }; + + builder.parse(&filters); builder.format(move |record| formatter.format(record)); builder.init().expect("Logger can be initialized only once"); } From fcdfae18d326def2372532901963312162661395 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 1 Sep 2017 14:23:41 +0300 Subject: [PATCH 8/9] fixed merge typo --- pbtc/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbtc/cli.yml b/pbtc/cli.yml index 9bd7ad7d..16c51a7e 100644 --- a/pbtc/cli.yml +++ b/pbtc/cli.yml @@ -72,7 +72,7 @@ args: value_name: URL - jsonrpc-apis: long: jsonrpc-apis - help: Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API name. Available APIs are blockchain, network, miner, raw. + help: Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited list of API names. Available APIs are blockchain, network, miner, raw. takes_value: true value_name: APIS - jsonrpc-hosts: From 05f07e85ac3ae77d6a27ea0228a42c2bc52dc2ba Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Fri, 1 Sep 2017 15:21:06 +0200 Subject: [PATCH 9/9] Update README regarding logging. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 079846d0..e3054f05 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ It it is possible to import existing `bitcoind` database: ./target/release/pbtc import "$BITCOIND_DB/Bitcoin/blocks" ``` -By default import verifies imported the blocks. You can disable this, by adding `--skip-verification flag. +By default import verifies imported the blocks. You can disable this, by adding `--skip-verification` flag. ``` ./target/release/pbtc import "#BITCOIND_DB/Bitcoin/blocks" --skip-verification @@ -336,7 +336,7 @@ This is a section only for developers and power users. You can enable detailed client logging by setting the environment variable `RUST_LOG`, e.g., ``` -RUST_LOG=verification=info ./target/release/pbtc --quiet +RUST_LOG=verification=info ./target/release/pbtc ``` `pbtc` started with this environment variable will print all logs coming from `verification` module with verbosity `info` or higher. Available log levels are: @@ -350,11 +350,9 @@ RUST_LOG=verification=info ./target/release/pbtc --quiet It's also possible to start logging from multiple modules in the same time: ``` -RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/pbtc --quiet +RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/pbtc ``` -**Note:** `RUST_LOG` does only work together with command line option `--quiet` which will suppress the default `sync=info` logging. - ## Internal documentation Once released, `pbtc` documentation will be available [here][doc-url]. Meanwhile it's only possible to build it locally: