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

Erik Skultety eskultet at redhat.com
Wed May 4 14:30:39 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.11




More information about the libvir-list mailing list