From 47cbc2b8fc8c5416df24b06277d1108289af63a1 Mon Sep 17 00:00:00 2001 From: Nova Date: Sat, 13 Apr 2024 05:07:46 -0400 Subject: [PATCH] feat(nodes/root): log base prefixes change --- src/nodes/root.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nodes/root.rs b/src/nodes/root.rs index b9d6eb0..f935ae0 100644 --- a/src/nodes/root.rs +++ b/src/nodes/root.rs @@ -13,9 +13,10 @@ use color_eyre::eyre::Result; use glam::Mat4; use rustc_hash::FxHashMap; use stardust_xr::schemas::flex::{deserialize, serialize}; +use std::path::PathBuf; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; -use tracing::instrument; +use tracing::{info, instrument}; static ROOT_REGISTRY: Registry = Registry::new(); @@ -72,7 +73,9 @@ impl Root { calling_client: Arc, message: Message, ) -> Result<()> { - *calling_client.base_resource_prefixes.lock() = deserialize(message.as_ref())?; + let prefixes: Vec = deserialize(message.as_ref())?; + info!(?client, ?prefixes, "Set base prefixes"); + *calling_client.base_resource_prefixes.lock() = prefixes; Ok(()) }