From cc51a9677ef86918e647703235294b74e66076e5 Mon Sep 17 00:00:00 2001 From: Daniele Di Proietto Date: Wed, 6 Jul 2016 16:39:15 -0700 Subject: [PATCH] vlog.py: Remove redundant setLevel() if "/dev/log" doesn't exist. Also update a comment. Signed-off-by: Daniele Di Proietto Acked-by: Gurucharan Shetty --- python/ovs/vlog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ovs/vlog.py b/python/ovs/vlog.py index 49210b85f0c..48d52ade7f1 100644 --- a/python/ovs/vlog.py +++ b/python/ovs/vlog.py @@ -298,11 +298,10 @@ def add_syslog_handler(facility=None): return logger = logging.getLogger('syslog') - # If there is no infrastructure to support python syslog, increase - # the logging severity level to avoid repeated errors. + # If there is no infrastructure to support python syslog, disable + # the logger to avoid repeated errors. if not os.path.exists("/dev/log"): logger.disabled = True - logger.setLevel(logging.CRITICAL) return if syslog_handler: