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.
This commit is contained in:
Lucas Schwiderski 2023-02-21 21:48:59 +01:00
parent 6c9d5dabd4
commit c73b8d2cc9
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -390,7 +390,9 @@ impl AppDelegate<State> for Delegate {
Handled::Yes
}
cmd => {
if cfg!(debug_assertions) {
tracing::warn!("Unknown command: {:?}", cmd);
}
Handled::No
}
}