about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 556c3c3a2aa4..973443cf1380 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -401,7 +401,8 @@ void printMsg_(Verbosity level, const format & f)
             prefix += "|   ";
     else if (logType == ltEscapes && level != lvlInfo)
         prefix = "\033[" + escVerbosity(level) + "s";
-    cerr << format("%1%%2%\n") % prefix % f.str();
+    string s = (format("%1%%2%\n") % prefix % f.str()).str();
+    writeFull(STDERR_FILENO, (const unsigned char *) s.c_str(), s.size());
 }