]> arthur.barton.de Git - netdata.git/commitdiff
debug flag fix
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 11:02:50 +0000 (13:02 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 11:02:50 +0000 (13:02 +0200)
plugins.d/python.d.plugin

index 20a52305a8b1214f17c58a46b4a7ef05a4c47436..01992c550828fd10d72582cbe1843df6374662ab 100755 (executable)
@@ -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']) +