Fix: only display error about blackboard if compiled in debug mode

This commit is contained in:
Herbert Wolverson committed 2025-04-09 11:28:51 -05:00
1 parent 98cfb6f52a
commit 31fef42a92
1 file changed
+1
@@ -38,6 +38,7 @@ pub async fn blackboard_blob<T: Serialize>(key: &str, value: T) -> anyhow::Resul
blob: chunk.to_vec(),
}];
let err = lqos_bus::bus_request(req).await;
#[cfg(debug_assertions)]
if let Err(e) = err {
tracing::error!("Error writing to blackboard (only an error if lqosd is running): {e:?}");
}