added init debug info

This commit is contained in:
asxalex 2024-07-04 20:39:57 +08:00
parent b43c073233
commit 08673d5d40

View File

@ -26,13 +26,16 @@ pub async fn run_sdlan(
// start_stop_sender: Sender<String>,
// start_stop_receiver: Receiver<String>,
) -> Result<()> {
debug!("run_sdlan");
let (start_stop_sender, start_stop_chan) = channel(20);
let edge_uuid = create_or_load_uuid("")?;
let node_conf = parse_config(edge_uuid, &args).await?;
debug!("initing edge");
if let Err(e) = init_edge(&args.token, node_conf, args.tos, start_stop_sender).await {
panic!("failed to init edge: {:?}", e);
}
debug!("edge inited");
let cancel = CancellationToken::new();
tokio::spawn(async move {