diff --git a/py/nstools/nut/Print.py b/py/nstools/nut/Print.py index e42ed08..f8d1d77 100644 --- a/py/nstools/nut/Print.py +++ b/py/nstools/nut/Print.py @@ -10,6 +10,9 @@ silent = False def info(s, pleaseNoPrint = None): + if silent or not enableInfo: + return + if pleaseNoPrint == None: sys.stdout.write(s + "\n") else: @@ -22,13 +25,21 @@ def info(s, pleaseNoPrint = None): pleaseNoPrint.decrement() def infoNoNewline(s): + if silent or not enableInfo: + return sys.stdout.write(s) def error(s): + if silent or not enableError: + return sys.stdout.write(s + "\n") def warning(s): + if silent or not enableWarning: + return sys.stdout.write(s + "\n") def debug(s): + if silent or not enableWarning: + return sys.stdout.write(s + "\n")