fix debugging issues
paulfantom committed
Jun 23, 2016 at 11:31 UTC
b40b0803968d63966aa0cc2168680766a0eeb5b1
1 file changed
+3
-4
plugins.d/python.d.plugin
+3
-4
@@ -432,7 +432,8 @@ def run():
432
# read configuration file
433
disabled = []
434
configfile = CONFIG_DIR + "python.d.conf"
435
- msg.info(PROGRAM, "reading configuration file:", configfile)
435
+ msg.PROGRAM = PROGRAM
436
+ msg.info("reading configuration file:", configfile)
437
438
conf = read_config(configfile)
439
if conf is not None:
@@ -457,11 +458,9 @@ def run():
458
if v is False:
459
disabled.append(k)
460
460
- DEBUG_FLAG = True
461
- msg.DEBUG_FLAG = DEBUG_FLAG
462
- msg.PROGRAM = PROGRAM
461
# parse passed command line arguments
462
modules = parse_cmdline(MODULES_DIR, *sys.argv)
463
+ msg.DEBUG_FLAG = DEBUG_FLAG
464
msg.info("MODULES_DIR='" + MODULES_DIR +
465
"', CONFIG_DIR='" + CONFIG_DIR +
466
"', UPDATE_EVERY=" + str(BASE_CONFIG['update_every']) +