diff options
Diffstat (limited to 'src/Log.cpp')
-rw-r--r-- | src/Log.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 259d9a3e..e5f4abc3 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -117,7 +117,11 @@ log_vprintf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, va_list args) Log::Feature::Handle* f = (Log::Feature::Handle*)handle; va_list noargs; - int ret = f->log->vtprintf(type, f->node->path().c_str(), noargs); + const std::string tag = (uri_is_path(f->node->uri()) + ? std::string(uri_to_path(f->node->uri())) + : std::string(f->node->uri())); + + int ret = f->log->vtprintf(type, tag.c_str(), noargs); ret += f->log->vtprintf(type, ": ", noargs); ret += f->log->vtprintf(type, fmt, args); |