Commits

Jeremy Sandell committed 4495cfe

well, that was stupid.

  • Participants
  • Parent commits 5c4a647

Comments (0)

Files changed (1)

File example/config.py

-from logging import basicConfig, DEBUG, INFO, WARNING, ERROR, getLogger
+from logging import (basicConfig, DEBUG as LOG_DEBUG, INFO, WARNING, ERROR,
+                     getLogger)
+
 from os.path import abspath, dirname, join
 
 LOGGING_ROOT = abspath(dirname(__file__))
 
-# Defaults to false.
-DEBUG = True
-
-
 # Will log everything in /path/to/this/directory/dyndns.log
 basicConfig(
     filename = join(LOGGING_ROOT, 'dyndns.log'),
 )
 
 # set logging to DEBUG.
-getLogger('').setLevel(DEBUG)
+getLogger('').setLevel(LOG_DEBUG)
 
 # This defaults to 'test.dyndns.org'. Place all hostnames that you'd like
 # to be updated in this tuple.
 
 # as does this.
 PASSWORD = 'your_password'
+
+# Defaults to false.
+DEBUG = True