Don't print calls to effIdle with debug level 1

REAPER seems to be the only DAW that uses this.
This commit is contained in:
Robbert van der Helm
2020-08-11 15:25:12 +02:00
parent 6ee2c5c787
commit c64fdb21d7
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -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
+2 -1
View File
@@ -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;