diff --git a/bin/weewxd b/bin/weewxd index a0c01580..7b3e7e9f 100755 --- a/bin/weewxd +++ b/bin/weewxd @@ -127,9 +127,9 @@ def main(): print(e, file=sys.stderr) sys.exit(weewx.CMD_ERROR) - weewx.debug = int(config_dict.get('debug', 0)) log.info("Using configuration file %s", config_path) - log.debug("Debug is %s", weewx.debug) + weewx.debug = int(config_dict.get('debug', 0)) + log.info("Debug is %s", weewx.debug) # Now that we have the config_dict and debug setting, we can customize the # logging with user additions