Browse code

Merge "Avoid huge libvirtd.log files on Ubuntu hosts"

Jenkins authored on 2014/07/08 05:25:55
Showing 1 changed files
... ...
@@ -112,7 +112,15 @@ EOF
112 112
 
113 113
     # Enable server side traces for libvirtd
114 114
     if [[ "$DEBUG_LIBVIRT" = "True" ]] ; then
115
-        local log_filters="1:libvirt 1:qemu 1:conf 1:security 3:event 3:json 3:file 1:util"
115
+        if is_ubuntu; then
116
+            # Unexpectedly binary package builds in ubuntu get fully qualified
117
+            # source file paths, not relative paths. This screws with the matching
118
+            # of '1:libvirt' making everything turn on. So use libvirt.c for now.
119
+            # This will have to be re-visited when Ubuntu ships libvirt >= 1.2.3
120
+            local log_filters="1:libvirt.c 1:qemu 1:conf 1:security 3:object 3:event 3:json 3:file 1:util"
121
+        else
122
+            local log_filters="1:libvirt 1:qemu 1:conf 1:security 3:object 3:event 3:json 3:file 1:util"
123
+        fi
116 124
         local log_outputs="1:file:/var/log/libvirt/libvirtd.log"
117 125
         if ! grep -q "log_filters=\"$log_filters\"" /etc/libvirt/libvirtd.conf; then
118 126
             echo "log_filters=\"$log_filters\"" | sudo tee -a /etc/libvirt/libvirtd.conf