summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-13 21:00:35 -0400
committerDavid Robillard <d@drobilla.net>2016-10-13 21:00:35 -0400
commit13cc88d9068ba025acaa923b7a5d410880d9063a (patch)
treeee7158c158d69ef1ecd3214a6c8e8d14c3d35f9d
parentc878b68adf9c150bed43b6a5eb354e023cddbe7e (diff)
downloadingen-13cc88d9068ba025acaa923b7a5d410880d9063a.tar.gz
ingen-13cc88d9068ba025acaa923b7a5d410880d9063a.tar.bz2
ingen-13cc88d9068ba025acaa923b7a5d410880d9063a.zip
Write log to stdout/stderr when GUI is present
-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);