Now debug mode is a configuration variable.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Mar 2014 22:06:34 +0000 (23:06 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Mar 2014 22:06:34 +0000 (23:06 +0100)
cgi-bin/dyndns.py

index 7863b79..98a3bd1 100755 (executable)
@@ -13,11 +13,13 @@ import ipaddr
 # Configuration
 PASSWORD = 'hygCithOrs5'
 ZONE = '.dyn.colgarra.priv.at'
+DEBUG = False
 
 
 # Just for debugging:
-# import cgitb
-# cgitb.enable()
+if DEBUG:
+       import cgitb
+       cgitb.enable()
 
 
 fields = cgi.FieldStorage()