summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 4280aaf8..9b5a09ce 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -76,7 +76,9 @@ Log::vtprintf(LV2_URID type, const char* fmt, va_list args)
return 0;
} else if (_sink) {
ret = _sink(type, fmt, args);
- } else if (_log) {
+ }
+
+ if (_log) {
ret = _log->vprintf(_log->handle, type, fmt, args);
} else if (type == _uris.log_Error) {
ColorContext ctx(stderr, ColorContext::Color::RED);