Replace log with tracing and record extrinsic info (#535)

* Replace log with tracing for integration tests

* Replace log with tracing

* Use correct tracing lib

* Log extrinsic hash and signature

* Debug extrinsic params

* Replace env_logger

* Replace more env_logger init

* Replace new logs with tracing

* Fix final env_logger
This commit is contained in:
Andrew Jones
2022-05-12 14:54:53 +01:00
committed by GitHub
parent 115073a33d
commit 31f8c37164
24 changed files with 59 additions and 47 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let signer = PairSigner::new(AccountKeyring::Alice.pair());
let dest = AccountKeyring::Bob.to_account_id().into();
@@ -40,7 +40,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let signer = PairSigner::new(AccountKeyring::Alice.pair());
let dest = AccountKeyring::Bob.to_account_id().into();
+1 -1
View File
@@ -33,7 +33,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.build()
+1 -1
View File
@@ -39,7 +39,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.build()
+1 -1
View File
@@ -33,7 +33,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.build()
+1 -1
View File
@@ -33,7 +33,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.set_url("wss://rpc.polkadot.io:443")
+1 -1
View File
@@ -36,7 +36,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
simple_transfer().await?;
simple_transfer_separate_events().await?;
+1 -1
View File
@@ -39,7 +39,7 @@ pub mod polkadot {}
/// pluck out the events that we care about.
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.build()
+1 -1
View File
@@ -39,7 +39,7 @@ pub mod polkadot {}
/// pluck out the events that we care about.
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
// Subscribe to any events that occur:
let api = ClientBuilder::new()
@@ -36,7 +36,7 @@ pub mod polkadot {}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
let api = ClientBuilder::new()
.build()
+1 -1
View File
@@ -39,7 +39,7 @@ pub mod polkadot {}
/// pluck out the events that we care about.
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
tracing_subscriber::fmt::init();
// Subscribe to any events that occur:
let api = ClientBuilder::new()