13
0

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.
This commit is contained in:
Robin Gareus 2023-04-04 15:44:21 +02:00
parent 850cf3e035
commit 112bf87436
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;