From c64fdb21d71dc4537b37edbff26d0159a20d87ce Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 11 Aug 2020 15:25:12 +0200 Subject: [PATCH] Don't print calls to effIdle with debug level 1 REAPER seems to be the only DAW that uses this. --- CHANGELOG.md | 6 ++++++ src/common/logging.cpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0db867b..7a5f37bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Don't print calls to `effIdle()` when `YABRIDGE_DEBUG_LEVEL` is set to 1. + ## [1.4.1] - 2020-07-27 ### yabridgectl diff --git a/src/common/logging.cpp b/src/common/logging.cpp index 1910df8a..c65a82cc 100644 --- a/src/common/logging.cpp +++ b/src/common/logging.cpp @@ -305,7 +305,8 @@ bool Logger::should_filter_event(bool is_dispatch, int opcode) const { // Filter out log messages related to these events by default since they are // called tens of times per second // TODO: Figure out what opcode 52 is - if ((is_dispatch && (opcode == effEditIdle || opcode == 52)) || + if ((is_dispatch && + (opcode == effEditIdle || opcode == 52 || opcode == effIdle)) || (!is_dispatch && (opcode == audioMasterGetTime || opcode == audioMasterGetCurrentProcessLevel))) { return true;