mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Enable logging in the puppet worker (#3411)
This is useful for tests where something is failing :D
This commit is contained in:
Generated
+1
@@ -6234,6 +6234,7 @@ dependencies = [
|
|||||||
"sp-externalities",
|
"sp-externalities",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-maybe-compressed-blob",
|
"sp-maybe-compressed-blob",
|
||||||
|
"sp-tracing",
|
||||||
"sp-wasm-interface",
|
"sp-wasm-interface",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"test-parachain-adder",
|
"test-parachain-adder",
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|||||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-wasm-interface = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
adder = { package = "test-parachain-adder", path = "../../../parachain/test-parachains/adder" }
|
adder = { package = "test-parachain-adder", path = "../../../parachain/test-parachains/adder" }
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ mod worker_common;
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub mod testing;
|
pub mod testing;
|
||||||
|
|
||||||
|
#[doc(hidden)]
|
||||||
|
pub use sp_tracing;
|
||||||
|
|
||||||
pub use error::{ValidationError, InvalidCandidate};
|
pub use error::{ValidationError, InvalidCandidate};
|
||||||
pub use priority::Priority;
|
pub use priority::Priority;
|
||||||
pub use pvf::Pvf;
|
pub use pvf::Pvf;
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ pub fn validate_candidate(
|
|||||||
macro_rules! decl_puppet_worker_main {
|
macro_rules! decl_puppet_worker_main {
|
||||||
() => {
|
() => {
|
||||||
fn main() {
|
fn main() {
|
||||||
|
$crate::sp_tracing::try_init_simple();
|
||||||
|
|
||||||
let args = std::env::args().collect::<Vec<_>>();
|
let args = std::env::args().collect::<Vec<_>>();
|
||||||
if args.len() < 2 {
|
if args.len() < 2 {
|
||||||
panic!("wrong number of arguments");
|
panic!("wrong number of arguments");
|
||||||
|
|||||||
Reference in New Issue
Block a user