diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-05-29 17:18:33 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-05-29 17:18:33 -0700 |
commit | ceecd2ce4152227f413484afad98d576348ec857 (patch) | |
tree | 8efc271839b7ca5b8073360b99b5033f2e56b6d2 /lib | |
parent | 5676cb0dd119c0fa5a8acacebb7d9b5d150ca885 (diff) | |
download | spack-ceecd2ce4152227f413484afad98d576348ec857.tar.gz spack-ceecd2ce4152227f413484afad98d576348ec857.tar.bz2 spack-ceecd2ce4152227f413484afad98d576348ec857.tar.xz spack-ceecd2ce4152227f413484afad98d576348ec857.zip |
Add ability to test whether tty verbose or debug is enabled.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/llnl/util/tty/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |