summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index c827425ee..a7dc235eb 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -24,12 +24,12 @@ def debug(flag):
# - developer: the code will drop into PBD on un-handled exception
# - ifconfig: prints command and sysfs access on stdout for interface
if flag not in ['developer', 'ifconfig']:
- return False
+ return ''
return flag if os.path.isfile(f'/tmp/vyos.{flag}.debug') else ''
def debug_msg(message, section=''):
- if section:
+ if debug(section):
print(f'DEBUG/{section:<6} {message}')