[libvirt] [PATCH 28/38] virlog: Make virLogSetDefaultPriority trigger source update as well

Erik Skultety eskultet at redhat.com
Thu Mar 31 17:49:01 UTC 2016


The source update is only triggered when a logging filter gets changed (by
incrementing virLogSerial counter), but if we also want to enable remote
global priority tuning, any change to priority needs to trigger the source
update as well.
---
 src/util/virlog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index a837e17..769dcec 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -265,6 +265,7 @@ virLogSetDefaultPriority(virLogPriority priority)
         return -1;
 
     virLogDefaultPriority = priority;
+    virLogSerial++;
     return 0;
 }
 
-- 
2.4.3




More information about the libvir-list mailing list