mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Remove unnecessary conditional from VST3 query log
This commit is contained in:
@@ -58,20 +58,18 @@ void Vst3Logger::log_query_interface(
|
||||
tresult result,
|
||||
const std::optional<Steinberg::FUID>& uid) {
|
||||
if (logger_.verbosity_ >= Logger::Verbosity::all_events) [[unlikely]] {
|
||||
std::ostringstream message;
|
||||
std::string uid_string = uid ? format_uid(*uid) : "<unknown_pointer>";
|
||||
|
||||
std::ostringstream message;
|
||||
if (result == Steinberg::kResultOk) {
|
||||
if (logger_.verbosity_ >= Logger::Verbosity::most_events) {
|
||||
message << "[query interface] " << where << ": " << uid_string;
|
||||
log(message.str());
|
||||
}
|
||||
message << "[query interface] " << where << ": " << uid_string;
|
||||
} else {
|
||||
// TODO: DIfferentiate between interfaces we don't implement and
|
||||
// interfaces the object doesn't implement
|
||||
message << "[unknown interface] " << where << ": " << uid_string;
|
||||
log(message.str());
|
||||
}
|
||||
|
||||
log(message.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user