Skip to content

Commit 089a077

Browse files
committed
fix(example): use logger is light-node
1 parent cf45b32 commit 089a077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

light-node/examples/node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use tycho_core::block_strider::{
55
StorageBlockProvider,
66
};
77
use tycho_light_node::CmdRun;
8+
use tycho_util::cli::logger::init_logger;
89

910
type Config = tycho_light_node::NodeConfig<()>;
1011

@@ -27,11 +28,11 @@ async fn main() -> anyhow::Result<()> {
2728
}));
2829

2930
let args = TestArgs::parse();
30-
3131
let import_zerostate = args.node.import_zerostate.clone();
3232

3333
let config: Config =
3434
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())?;
3536

3637
let mut node = args.node.create(config.clone()).await?;
3738

0 commit comments

Comments
 (0)