From fa256ab9be42dd19f02368cbb908b5ad62eb00c9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 19 Dec 2020 12:51:00 +0100 Subject: [PATCH] Only log IComponent::getBusCount() on verbosity 2 --- src/common/logging/vst3.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/common/logging/vst3.cpp b/src/common/logging/vst3.cpp index 0a3b6610..8b47f2a5 100644 --- a/src/common/logging/vst3.cpp +++ b/src/common/logging/vst3.cpp @@ -226,11 +226,14 @@ bool Vst3Logger::log_request(bool is_host_vst, bool Vst3Logger::log_request(bool is_host_vst, const YaComponent::GetBusCount& request) { - return log_request_base(is_host_vst, [&](auto& message) { - message << request.instance_id - << ": IComponent::getBusCount(type = " << request.type - << ", dir = " << request.dir << ")"; - }); + // JUCE-based hosts will call this every processing cycle, for some reason + // (it shouldn't be allwoed to change during processing, right?) + return log_request_base( + is_host_vst, Logger::Verbosity::all_events, [&](auto& message) { + message << request.instance_id + << ": IComponent::getBusCount(type = " << request.type + << ", dir = " << request.dir << ")"; + }); } bool Vst3Logger::log_request(bool is_host_vst,