Make verbosity level mandatory with telemetry opt (#5057)

* Make verbosity level mandatory instead of defaulting to 0 when using --telemetry-url

* Update README docs

* Change TelemetryError struct to enum

* Return TelemetryParsingError instead of a Boxed dyn error

* Replace spaces by tabs

* Add example of expected format for telemetry-url

* Remove UrlParsingError; Call to_string instead of parse for TelemetryEndpoints url
This commit is contained in:
pscott
2020-04-05 14:36:45 +02:00
committed by GitHub
parent 3420598d0a
commit 308dbf1c7a
3 changed files with 28 additions and 13 deletions
+2 -2
View File
@@ -291,7 +291,7 @@ cargo run --release \-- \
--chain=local \
--alice \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--telemetry-url ws://telemetry.polkadot.io:1024 \
--telemetry-url 'ws://telemetry.polkadot.io:1024 0' \
--validator
In the second terminal, we'll run the following to start Bob's Substrate node on a different TCP port of 30334, and with his chain database stored locally at `/tmp/bob`. We'll specify a value for the `--bootnodes` option that will connect his node to Alice's Bootnode ID on TCP port 30333:
@@ -303,7 +303,7 @@ cargo run --release \-- \
--chain=local \
--bob \
--port 30334 \
--telemetry-url ws://telemetry.polkadot.io:1024 \
--telemetry-url 'ws://telemetry.polkadot.io:1024 0' \
--validator
Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`.