From 6a047497bc110a4fdb2c7cafdfc3440a257ee143 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 31 May 2021 17:44:43 +0200 Subject: [PATCH] Only print query interface messages on log level 2 --- CHANGELOG.md | 2 ++ src/common/logging/vst3.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 593c533d..45fbde18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,8 @@ Versioning](https://semver.org/spec/v2.0.0.html). multiple instances of a plugin. - The deserialization part of yabridge's communication is now slightly faster by skipping some unnecessary checks. +- Log messages about VST3 query interfaces are now only printed when + `YABRIDGE_DEBUG_LEVEL` is set to 2 or higher, up from 1. ### Fixed diff --git a/src/common/logging/vst3.cpp b/src/common/logging/vst3.cpp index 4d3d4551..3fdb08c9 100644 --- a/src/common/logging/vst3.cpp +++ b/src/common/logging/vst3.cpp @@ -57,7 +57,7 @@ void Vst3Logger::log_query_interface( const std::string& where, tresult result, const std::optional& uid) { - if (BOOST_UNLIKELY(logger.verbosity >= Logger::Verbosity::most_events)) { + if (BOOST_UNLIKELY(logger.verbosity >= Logger::Verbosity::all_events)) { std::ostringstream message; std::string uid_string = uid ? format_uid(*uid) : "";