]> xenbits.xensource.com Git - libvirt.git/commit
Add support for timestamping QEMU logs
authorJán Tomko <jtomko@redhat.com>
Wed, 9 Apr 2014 13:23:45 +0000 (15:23 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 7 May 2014 08:27:50 +0000 (10:27 +0200)
commitf3be5f0c5004298bb2541b3fb27926c3cb1e5b57
tree0b31db282b89fd134d26a90f89765d2a79c06656
parentb6d4dad11bd6b244d20d0f3a39257aaaed7c53b4
Add support for timestamping QEMU logs

QEMU commit 5e2ac51 added a boolean '-msg timestamp=[on|off]'
option, which can enable timestamps on errors:
$ qemu-system-x86_64 -msg timestamp=on zghhdorf
2014-04-09T13:25:46.779484Z qemu-system-x86_64: -msg timestamp=on: could
not open disk image zghhdorf: Could not open 'zghhdorf': No such file or
directory

Enable this timestamp if the QEMU binary supports it.

Add a 'log_timestamp' option to qemu.conf for disabling this behavior.
13 files changed:
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/test_libvirtd_qemu.aug.in
tests/qemucapabilitiesdata/caps_1.6.0-1.caps
tests/qemucapabilitiesdata/caps_1.6.50-1.caps
tests/qemuxml2argvdata/qemuxml2argv-minimal-msg-timestamp.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-minimal-msg-timestamp.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c