From a9a6e68fc044889c086794482fd94ed8e898ecef Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 10 Sep 2022 18:01:02 +0200 Subject: [PATCH] Add dedicated PrimitiveWrapper logging for bools --- src/common/logging/vst3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/logging/vst3.h b/src/common/logging/vst3.h index 11da8f14..05880650 100644 --- a/src/common/logging/vst3.h +++ b/src/common/logging/vst3.h @@ -351,7 +351,12 @@ class Vst3Logger { bool from_cache = false) { // For logging all primitive return values other than `tresult` log_response_base(is_host_plugin, [&](auto& message) { - message << value; + if constexpr (std::is_same_v) { + message << (value ? "true" : "false"); + } else { + message << value; + } + if (from_cache) { message << " (from cache)"; }