Similar to outputs, parser should do parsing only, thus the 'define' logic
is going to be stripped from virLogParseFilters. Make this change transparent
to all callers by using virLogSetFilters which has already been introduced
earlier in this series.
---
daemon/libvirtd.c | 2 +-
src/locking/lock_daemon.c | 2 +-
src/logging/log_daemon.c | 2 +-
src/util/virlog.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index d0019b0..0f15ffb 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -690,7 +690,7 @@ daemonSetupLogging(struct daemonConfig *config,
virLogSetFromEnv();
if (virLogGetNbFilters() == 0)
- virLogParseFilters(config->log_filters);
+ virLogSetFilters(config->log_filters);
if (virLogGetNbOutputs() == 0)
virLogSetOutputs(config->log_outputs);
diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c
index 8d760b2..cce70e7 100644
--- a/src/locking/lock_daemon.c
+++ b/src/locking/lock_daemon.c
@@ -476,7 +476,7 @@ virLockDaemonSetupLogging(virLockDaemonConfigPtr config,
virLogSetFromEnv();
if (virLogGetNbFilters() == 0)
- virLogParseFilters(config->log_filters);
+ virLogSetFilters(config->log_filters);
if (virLogGetNbOutputs() == 0)
virLogSetOutputs(config->log_outputs);
diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c
index f8a96e8..f0e8ea0 100644
--- a/src/logging/log_daemon.c
+++ b/src/logging/log_daemon.c
@@ -399,7 +399,7 @@ virLogDaemonSetupLogging(virLogDaemonConfigPtr config,
virLogSetFromEnv();
if (virLogGetNbFilters() == 0)
- virLogParseFilters(config->log_filters);
+ virLogSetFilters(config->log_filters);
if (virLogGetNbOutputs() == 0)
virLogSetOutputs(config->log_outputs);
diff --git a/src/util/virlog.c b/src/util/virlog.c
index 538a5b8..9059722 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -1472,7 +1472,7 @@ virLogSetFromEnv(void)
virLogParseDefaultPriority(debugEnv);
debugEnv = virGetEnvAllowSUID("LIBVIRT_LOG_FILTERS");
if (debugEnv && *debugEnv)
- virLogParseFilters(debugEnv);
+ virLogSetFilters(debugEnv);
debugEnv = virGetEnvAllowSUID("LIBVIRT_LOG_OUTPUTS");
if (debugEnv && *debugEnv)
virLogSetOutputs(debugEnv);
--
2.4.11