Prevent excessive debug logs
This commit is contained in:
parent
5ac66779c2
commit
1df5f47c2c
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ async fn handle_action(
|
|||
action_queue: Arc<RwLock<UnboundedReceiver<AsyncAction>>>,
|
||||
) {
|
||||
while let Some(action) = action_queue.write().await.recv().await {
|
||||
if cfg!(debug_assertions) && !matches!(action, AsyncAction::Log(_)) {
|
||||
tracing::debug!(?action);
|
||||
}
|
||||
|
||||
let event_sink = event_sink.clone();
|
||||
match action {
|
||||
|
|
Loading…
Add table
Reference in a new issue