]> xenbits.xensource.com Git - libvirt.git/commitdiff
log: Separate thread ID from timestemp in ring buffer
authorJiri Denemark <jdenemar@redhat.com>
Mon, 25 Mar 2013 10:35:27 +0000 (11:35 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 27 Mar 2013 08:00:35 +0000 (09:00 +0100)
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

index 957d993a3be56bf968490f4238070fd5b2c3426a..721c9bd444bc564737615784b75c51c6616e547c 100644 (file)
@@ -850,6 +850,7 @@ virLogVMessage(virLogSource source,
      */
     virLogLock();
     virLogStr(timestamp);
+    virLogStr(": ");
     virLogStr(msg);
     virLogUnlock();
     if (emit == 0)