Skip to content
Snippets Groups Projects
Commit 566c9a73 authored by ale's avatar ale
Browse files

add some more debugging logs

parent ee68d362
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment