changeset 10:b237b96602ad

We need to handle "debug" setting before other settings, so we need a special case for it before post-parsing and validating rest of the config.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jul 2016 12:56:20 +0300
parents 01c933dba120
children fcdee7c04ed8
files multimerge.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/multimerge.py	Mon Jul 04 12:55:41 2016 +0300
+++ b/multimerge.py	Mon Jul 04 12:56:20 2016 +0300
@@ -255,6 +255,11 @@
     if not cfgparser.has_section(section):
         gcm_fatal("Invalid configuration, missing '{0}' section.".format(section))
 
+    # Debug setting is a special case, we need to get it
+    # set before everything else, so do it here ..
+    if cfgparser.has_option(section, "debug"):
+        cfg.mset("debug", cfgparser.get(section, "debug"))
+
     # Parse the settings and validate
     cfg.mread(cfgparser, section)