[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]