From 7a75d6e938253ba61979e794472f822e855976d0 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Fri, 17 Apr 2020 09:34:09 +0100 Subject: util: T2226: restore/fix ifconfig debuging --- python/vyos/ifconfig/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/vyos/ifconfig') diff --git a/python/vyos/ifconfig/control.py b/python/vyos/ifconfig/control.py index 7bb63beed..0958be642 100644 --- a/python/vyos/ifconfig/control.py +++ b/python/vyos/ifconfig/control.py @@ -35,8 +35,8 @@ class Control(Section): # if debug is not explicitely disabled the the config, enable it self.debug = '' - if kargs.get('debug', True): - self.debug = debug.enabled('ifconfig') + if kargs.get('debug', True) and debug.enabled('ifconfig'): + self.debug = 'ifconfig' def _debug_msg (self, message): return debug.message(message, self.debug) -- cgit v1.2.3