From ceecd2ce4152227f413484afad98d576348ec857 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Fri, 29 May 2015 17:18:33 -0700 Subject: Add ability to test whether tty verbose or debug is enabled. --- lib/spack/llnl/util/tty/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/spack/llnl/util/tty/__init__.py b/lib/spack/llnl/util/tty/__init__.py index aba9e61f4f..48368543ff 100644 --- a/lib/spack/llnl/util/tty/__init__.py +++ b/lib/spack/llnl/util/tty/__init__.py @@ -36,6 +36,14 @@ _debug = False _verbose = False indent = " " +def is_verbose(): + return _verbose + + +def is_debug(): + return _debug + + def set_debug(flag): global _debug _debug = flag -- cgit v1.2.3-60-g2f50