diff --git a/client/djrandom_client/utils.py b/client/djrandom_client/utils.py index 2fe28fca3eea1c1253dc0782404cb968994042ca..a1241ee37f68e9e2260561c04c965bf362e9b31e 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)