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/airbag.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/airbag.py')
-rw-r--r-- | python/vyos/airbag.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/vyos/airbag.py b/python/vyos/airbag.py index 664974d5f..b0565192d 100644 --- a/python/vyos/airbag.py +++ b/python/vyos/airbag.py @@ -19,10 +19,10 @@ import logging import logging.handlers from datetime import datetime +from vyos import debug from vyos.config import Config from vyos.version import get_version from vyos.util import run -from vyos.util import debug # we allow to disable the extra logging @@ -77,8 +77,7 @@ def bug_report(dtype, value, trace): # reach the end of __main__ and was not intercepted def intercepter(dtype, value, trace): bug_report(dtype, value, trace) - # debug returns either '' or 'developer' if debuging is enabled - if debug('developer'): + if debug.enabled('developer'): import pdb pdb.pm() |