From 13cc88d9068ba025acaa923b7a5d410880d9063a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 13 Oct 2016 21:00:35 -0400 Subject: Write log to stdout/stderr when GUI is present --- src/Log.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1