summaryrefslogtreecommitdiffstats
path: root/pulsecaster/ui.py
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-12-21 15:28:36 -0500
committerPaul W. Frields <stickster@gmail.com>2010-12-21 15:28:36 -0500
commitaf5fafca22e10bfa61ea78242b47fc2c1fd4c0c9 (patch)
treee3aaf4da72d050c374256517ccf3d25bcf518ace /pulsecaster/ui.py
parent0a53d18443f44d56ebfe184a87b43f78a391de4c (diff)
downloadpulsecaster-af5fafca22e10bfa61ea78242b47fc2c1fd4c0c9.tar.gz
pulsecaster-af5fafca22e10bfa61ea78242b47fc2c1fd4c0c9.tar.xz
pulsecaster-af5fafca22e10bfa61ea78242b47fc2c1fd4c0c9.zip
Use envar for debugging from now on
Diffstat (limited to 'pulsecaster/ui.py')
-rw-r--r--pulsecaster/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py
index 7c72b62..5cfe8e6 100644
--- a/pulsecaster/ui.py
+++ b/pulsecaster/ui.py
@@ -37,7 +37,10 @@ from datetime import datetime
import gettext
_ = lambda x: gettext.ldgettext(NAME, x)
-_debug = True
+try:
+ _debug = os.environ['PULSECASTER_DEBUG']
+except:
+ _debug = False
def _debugPrint(text):
if _debug: