From: paulfantom Date: Wed, 13 Jul 2016 11:02:50 +0000 (+0200) Subject: debug flag fix X-Git-Tag: v1.3.0~72^2~5 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b29e376ef2cba2a175258be43d781a9f1b8673;p=netdata.git debug flag fix --- diff --git a/plugins.d/python.d.plugin b/plugins.d/python.d.plugin index 20a52305..01992c55 100755 --- a/plugins.d/python.d.plugin +++ b/plugins.d/python.d.plugin @@ -426,7 +426,7 @@ def parse_cmdline(directory, *commands): DEBUG_FLAG = True # redirect stderr to stdout? elif os.path.isfile(directory + cmd + ".chart.py") or os.path.isfile(directory + cmd): - DEBUG_FLAG = True + #DEBUG_FLAG = True mods.append(cmd.replace(".chart.py", "")) else: try: @@ -481,6 +481,7 @@ def run(): # 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']) +