From: paulfantom Date: Thu, 23 Jun 2016 09:31:09 +0000 (+0200) Subject: fix debugging issues X-Git-Tag: v1.3.0~105^2~10 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b40b0803968d63966aa0cc2168680766a0eeb5b1;p=netdata.git fix debugging issues --- diff --git a/plugins.d/python.d.plugin b/plugins.d/python.d.plugin index 8ae26dbb..a6b41016 100755 --- a/plugins.d/python.d.plugin +++ b/plugins.d/python.d.plugin @@ -432,7 +432,8 @@ def run(): # read configuration file disabled = [] configfile = CONFIG_DIR + "python.d.conf" - msg.info(PROGRAM, "reading configuration file:", configfile) + msg.PROGRAM = PROGRAM + msg.info("reading configuration file:", configfile) conf = read_config(configfile) if conf is not None: @@ -457,11 +458,9 @@ def run(): if v is False: disabled.append(k) - DEBUG_FLAG = True - msg.DEBUG_FLAG = DEBUG_FLAG - msg.PROGRAM = PROGRAM # parse passed command line arguments modules = parse_cmdline(MODULES_DIR, *sys.argv) + msg.DEBUG_FLAG = DEBUG_FLAG msg.info("MODULES_DIR='" + MODULES_DIR + "', CONFIG_DIR='" + CONFIG_DIR + "', UPDATE_EVERY=" + str(BASE_CONFIG['update_every']) +