[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] log: Separate thread ID from timestemp in ring buffer



When we write a log message into a log, we separate thread ID from
timestamp using ": ". However, when storing the message into the ring
buffer, we omitted the separator, e.g.:

    2013-02-27 11:49:11.852+00003745: ...
---
 src/util/virlog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index 957d993..721c9bd 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -850,6 +850,7 @@ virLogVMessage(virLogSource source,
      */
     virLogLock();
     virLogStr(timestamp);
+    virLogStr(": ");
     virLogStr(msg);
     virLogUnlock();
     if (emit == 0)
-- 
1.8.1.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]