]> arthur.barton.de Git - netdata.git/commitdiff
fix debugging issues
authorpaulfantom <paulfantom@gmail.com>
Thu, 23 Jun 2016 09:31:09 +0000 (11:31 +0200)
committerpaulfantom <paulfantom@gmail.com>
Thu, 23 Jun 2016 09:31:09 +0000 (11:31 +0200)
plugins.d/python.d.plugin

index 8ae26dbbcb63390732ce2be843ea2dc20714aa3b..a6b410167e91fea93dc629f304bdc075fd2fa897 100755 (executable)
@@ -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']) +