Only print query interface messages on log level 2

This commit is contained in:
Robbert van der Helm
2021-05-31 17:44:43 +02:00
parent 511aa14700
commit 6a047497bc
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
+1 -1
View File
@@ -57,7 +57,7 @@ void Vst3Logger::log_query_interface(
const std::string& where,
tresult result,
const std::optional<Steinberg::FUID>& 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) : "<unknown_pointer>";