diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-14 17:11:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 17:11:03 +0200 |
commit | ffd23f72ca3e668ef294446fac4e4d7fbc80d640 (patch) | |
tree | 0401522f3ca79304644a891858df5ea728b11ec9 /python/vyos/ifconfig/control.py | |
parent | 9389f3e1d7ee754fd654b4d6b88338754dab452f (diff) | |
parent | 25bf56cb62cc239b28c20512dedd4fa9fa1c8bc5 (diff) | |
download | vyos-1x-ffd23f72ca3e668ef294446fac4e4d7fbc80d640.tar.gz vyos-1x-ffd23f72ca3e668ef294446fac4e4d7fbc80d640.zip |
Merge pull request #340 from thomas-mangin/T2226-debug
cmd: T2226: improve debugging
Diffstat (limited to 'python/vyos/ifconfig/control.py')
-rw-r--r-- | python/vyos/ifconfig/control.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/control.py b/python/vyos/ifconfig/control.py index 464cd585e..7bb63beed 100644 --- a/python/vyos/ifconfig/control.py +++ b/python/vyos/ifconfig/control.py @@ -16,8 +16,9 @@ import os -from vyos.util import debug, debug_msg -from vyos.util import popen, cmd +from vyos import debug +from vyos.util import popen +from vyos.util import cmd from vyos.ifconfig.section import Section @@ -35,10 +36,10 @@ class Control(Section): # if debug is not explicitely disabled the the config, enable it self.debug = '' if kargs.get('debug', True): - self.debug = debug('ifconfig') + self.debug = debug.enabled('ifconfig') def _debug_msg (self, message): - return debug_msg(message, self.debug) + return debug.message(message, self.debug) def _popen(self, command): return popen(command, self.debug) |