summaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index b2d30b7d..46b88aec 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -98,7 +98,11 @@ int
Log::vtprintf(LV2_URID type, const char* fmt, va_list args)
{
int ret = 0;
- if (_log) {
+ if (type == _uris.log_Trace && !_trace) {
+ return 0;
+ } else if (_sink) {
+ ret = _sink(type, fmt, args);
+ } else if (_log) {
ret = _log->vprintf(_log->handle, type, fmt, args);
} else if (type == _uris.log_Error) {
ColorContext ctx(stderr, ColorContext::Color::RED);