From c73b8d2cc90940feab6404a44df08576db86cc30 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 21 Feb 2023 21:48:59 +0100 Subject: [PATCH] refactor: Only show unknown commands in debug There are a bunch of optional commands provided by druid that trigger this, but we only really need it to check for custom ones that weren't implemented, yet. --- crates/dtmm/src/state.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/dtmm/src/state.rs b/crates/dtmm/src/state.rs index 8775aff..18a7735 100644 --- a/crates/dtmm/src/state.rs +++ b/crates/dtmm/src/state.rs @@ -390,7 +390,9 @@ impl AppDelegate for Delegate { Handled::Yes } cmd => { - tracing::warn!("Unknown command: {:?}", cmd); + if cfg!(debug_assertions) { + tracing::warn!("Unknown command: {:?}", cmd); + } Handled::No } }