debug: ensure that __dprint() is also logged over the network
[fio.git] / log.c
diff --git a/log.c b/log.c
index 4822c33526d29fd4b7d9c0731f5030c75c982909..a05a7ec5d3f28f2bc2fd67b08fa8afc132585da4 100644 (file)
--- a/log.c
+++ b/log.c
@@ -14,6 +14,8 @@ int log_valist(const char *str, va_list args)
        len = vsnprintf(buffer, sizeof(buffer), str, args);
        len = min(len, sizeof(buffer) - 1);
 
+       if (is_backend)
+               len = fio_server_text_output(FIO_LOG_INFO, buffer, len);
        if (log_syslog)
                syslog(LOG_INFO, "%s", buffer);
        else