From 112bf87436405bc0ef6c4a6f7f94f8e67b042781 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 4 Apr 2023 15:44:21 +0200 Subject: [PATCH] VST3 scan, do not clutter up Log This prevents excessive "Cache file is valid and up-to-date." messages in the log window. - Plugin manager has verbose log. --- libs/ardour/vst3_scan.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libs/ardour/vst3_scan.cc b/libs/ardour/vst3_scan.cc index fa19a54d35..efb05ec07b 100644 --- a/libs/ardour/vst3_scan.cc +++ b/libs/ardour/vst3_scan.cc @@ -402,15 +402,21 @@ ARDOUR::vst3_valid_cache_file (std::string const& module_path, bool verbose, boo /* check file format version */ XMLTree tree; if (!tree.read (cache_file)) { - PBD::info << "Cache file is not valid XML." << endmsg; + if (verbose) { + PBD::info << "Cache file is not valid XML." << endmsg; + } return ""; } int cf_version = 0; if (!tree.root()->get_property ("version", cf_version) || cf_version < ARDOUR_VST3_CACHE_FILE_VERSION) { - PBD::info << "Cache file version is too old." << endmsg; + if (verbose) { + PBD::info << "Cache file version is too old." << endmsg; + } return ""; } - PBD::info << "Cache file is valid and up-to-date." << endmsg; + if (verbose) { + PBD::info << "Cache file is valid and up-to-date." << endmsg; + } return cache_file; } else if (verbose) { PBD::info << "Stale cache." << endmsg;