From 566c9a730eedf8d317d3ac0280c129aff6c6cf6b Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 24 Sep 2011 11:15:07 +0100
Subject: [PATCH] add some more debugging logs

---
 client/djrandom_client/utils.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/client/djrandom_client/utils.py b/client/djrandom_client/utils.py
index 2fe28fc..a1241ee 100644
--- a/client/djrandom_client/utils.py
+++ b/client/djrandom_client/utils.py
@@ -1,8 +1,11 @@
 import hashlib
+import logging
 import os
 
 NESTING = 2
 
+log = logging.getLogger(__name__)
+
 
 def generate_path(base_dir, sha1):
     dir_parts = [base_dir]
@@ -29,6 +32,7 @@ class SyntaxError(Exception):
 
 
 def read_config_defaults(parser, path):
+    log.debug('reading config from %s' % path)
     if not os.path.exists(path):
         return
     with open(path, 'r') as fd:
@@ -40,4 +44,5 @@ def read_config_defaults(parser, path):
                 raise SyntaxError('%s, line %d: Syntax Error' % (
                         path, 1 + linenum))
             var, value = map(lambda x: x.strip(), line.split('=', 1))
+            log.debug('config: %s = "%s"' % (var, value))
             parser.set_default(var, value)
-- 
GitLab