Daniel P. Berrangé
07c9d6601d
qemu: use line breaks in command line args written to log
...
The QEMU command line arguments are very long and currently all written
on a single line to /var/log/libvirt/qemu/$GUEST.log. This introduces
logic to add line breaks after every env variable and "-" optional
argument, and every positional argument. This will create a clearer log
file, which will in turn present better in bug reports when people cut +
paste from the log into a bug comment.
An example log file entry now looks like this:
2018-12-14 12:57:03.677+0000: starting up libvirt version: 5.0.0, qemu version: 3.0.0qemu-3.0.0-1.fc29, kernel: 4.19.5-300.fc29.x86_64, hostname: localhost.localdomain
LC_ALL=C \
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \
HOME=/home/berrange \
USER=berrange \
LOGNAME=berrange \
QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-ppc64 \
-name guest=guest,debug-threads=on \
-S \
-object secret,id=masterKey0,format=raw,file=/home/berrange/.config/libvirt/qemu/lib/domain-33-guest/master-key.aes \
-machine pseries-2.10,accel=tcg,usb=off,dump-guest-core=off \
-m 1024 \
-realtime mlock=off \
-smp 1,sockets=1,cores=1,threads=1 \
-uuid c8a74977-ab18-41d0-ae3b-4041c7fffbcd \
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=23,server,nowait \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc \
-no-shutdown \
-boot strict=on \
-device qemu-xhci,id=usb,bus=pci.0,addr=0x1 \
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2018-12-14 12:57:03.730+0000: shutting down, reason=failed
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-12-17 15:02:11 +00:00
..
2018-05-13 13:38:31 +04:00
2018-06-08 21:53:36 +04:00
2018-05-13 13:38:31 +04:00
2018-12-03 14:31:41 +01:00
2018-12-17 15:02:11 +00:00
2018-09-19 14:05:59 +02:00
2018-09-20 16:24:58 -04:00
2017-04-11 14:06:47 +02:00
2017-11-07 14:58:04 +01:00
2018-03-13 13:54:06 +01:00
2018-11-14 12:18:46 -05:00
2018-02-02 14:51:32 +01:00
2018-11-26 16:33:25 -07:00
2018-12-11 15:03:08 -05:00
2017-07-11 10:41:24 +02:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2018-05-25 09:36:42 -04:00
2017-12-07 09:21:04 +00:00
2017-12-07 09:21:04 +00:00
2017-12-05 14:52:49 +01:00
2018-08-28 11:49:01 +01:00
2018-07-10 13:37:51 +02:00
2018-12-03 14:56:08 +01:00
2018-11-29 15:24:03 +01:00
2017-11-30 16:49:05 +01:00
2017-10-27 14:43:21 +02:00
2018-03-19 21:22:43 +01:00
2017-07-15 14:50:42 +02:00
2018-08-13 15:50:01 +02:00
2018-04-17 12:45:26 -04:00
2018-08-21 15:46:06 +02:00
2018-12-13 09:55:38 +01:00
2018-09-12 14:43:03 +02:00
2018-12-05 17:53:26 +01:00
2018-05-29 10:22:08 +02:00
2018-12-13 07:09:42 -05:00
2018-12-13 07:09:42 -05:00
2018-12-13 07:09:42 -05:00
2018-05-25 09:32:37 -04:00
2018-12-17 14:43:33 +00:00
2018-12-17 14:43:33 +00:00
2018-06-26 14:02:43 -04:00
2018-03-14 17:43:40 +01:00
2018-09-20 13:06:02 -04:00
2018-10-05 15:53:29 +02:00
2017-10-16 10:22:34 +01:00
2017-07-26 15:33:45 +02:00
2018-10-10 17:14:45 +02:00
2018-08-14 15:52:35 +02:00
2017-07-11 14:24:17 +02:00
2018-08-13 15:50:01 +02:00
2018-02-02 13:00:48 +00:00
2018-06-26 11:22:07 +01:00
2018-08-13 14:19:41 -04:00
2017-04-04 16:36:15 +02:00
2018-04-20 09:09:29 +02:00
2018-12-06 15:05:16 -07:00
2018-06-04 20:59:16 -06:00
2018-04-09 11:33:30 -06:00
2018-04-20 09:11:01 +02:00
2018-02-19 13:15:00 -05:00
2018-05-13 13:38:31 +04:00
2018-02-22 13:52:45 +01:00
2018-12-17 15:02:11 +00:00
2018-05-13 13:38:31 +04:00
2018-08-15 10:15:29 +02:00
2018-09-20 10:16:39 +02:00
2018-12-17 15:02:11 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2017-04-11 13:23:01 +02:00
2018-12-13 16:08:38 +00:00
2018-08-15 10:15:29 +02:00
2018-11-14 12:18:46 -05:00
2018-04-26 13:39:10 +02:00
2018-09-20 10:16:39 +02:00
2018-07-27 15:44:38 +02:00
2018-12-13 16:08:38 +00:00
2018-12-11 15:03:08 -05:00
2018-09-20 10:16:39 +02:00
2018-12-14 13:56:53 +01:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2017-09-19 16:04:53 +02:00
2018-09-20 10:16:39 +02:00
2018-08-13 15:50:01 +02:00
2018-09-20 10:16:39 +02:00
2018-10-12 16:41:48 +02:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-06-19 14:01:14 +02:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-08-13 15:50:01 +02:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-17 15:02:11 +00:00
2018-12-12 15:12:35 +01:00
2017-04-04 17:30:03 +02:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-05 10:39:54 +01:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-17 15:02:11 +00:00
2018-12-13 07:09:42 -05:00
2018-12-17 15:02:11 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2017-05-15 12:34:19 +02:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-07-13 14:15:59 +02:00
2018-12-14 10:47:13 +00:00
2018-11-26 16:38:26 -07:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2018-12-13 16:08:38 +00:00
2018-02-05 16:08:57 +01:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-06-05 14:32:36 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2017-04-04 17:30:03 +02:00
2018-12-14 13:56:53 +01:00
2017-07-26 15:33:45 +02:00
2018-06-05 14:32:36 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2018-12-05 10:39:54 +01:00
2017-04-27 14:13:19 +02:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2017-11-03 13:24:12 +01:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-04-24 11:02:28 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2017-04-11 14:06:47 +02:00
2017-04-13 10:14:42 +02:00
2018-10-12 09:30:56 -05:00
2018-11-28 13:18:48 +01:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-03-23 07:14:58 +01:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:38 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-11-28 13:18:48 +01:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00