We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf45b32 commit 089a077Copy full SHA for 089a077
light-node/examples/node.rs
@@ -5,6 +5,7 @@ use tycho_core::block_strider::{
5
StorageBlockProvider,
6
};
7
use tycho_light_node::CmdRun;
8
+use tycho_util::cli::logger::init_logger;
9
10
type Config = tycho_light_node::NodeConfig<()>;
11
@@ -27,11 +28,11 @@ async fn main() -> anyhow::Result<()> {
27
28
}));
29
30
let args = TestArgs::parse();
-
31
let import_zerostate = args.node.import_zerostate.clone();
32
33
let config: Config =
34
tycho_light_node::NodeConfig::from_file(args.node.config.as_ref().context("no config")?)?;
35
+ init_logger(&config.logger_config, args.node.logger_config.clone())?;
36
37
let mut node = args.node.create(config.clone()).await?;
38
0 commit comments