X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/809bcf831f76bbb1ad8623853103c8abfe4c6194..8c771381ce4cfa26901412997c266457b05921d4:/hippotatlib/__init__.py diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 9b10fdf..397dfb2 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -525,6 +525,10 @@ def cfg_process_ipif(c, sections, varmap): #---------- startup ---------- +def log_debug_config(m): + if not DBG.CONFIG in debug_set: return + print('DBG.CONFIG:', m) + def common_startup(process_cfg): # calls process_cfg(putative_clients, putative_servers) @@ -536,7 +540,7 @@ def common_startup(process_cfg): def readconfig(pathname, mandatory=True): def log(m, p=pathname): if not DBG.CONFIG in debug_set: return - print('DBG.CONFIG: %s: %s' % (m, pathname)) + log_debug_config('%s: %s' % (m, pathname)) try: files = os.listdir(pathname)