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:
parent
850cf3e035
commit
112bf87436
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user