From 8bdec03cf1be6fdd039dc874b3d6902017c4f26d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 1 Aug 2019 11:22:27 -0400 Subject: [PATCH] Properly support debug logging via config --- node-daemon/pvcd.sample.yaml | 2 ++ node-daemon/pvcd/Daemon.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/node-daemon/pvcd.sample.yaml b/node-daemon/pvcd.sample.yaml index c1d589d7..eca421fd 100644 --- a/node-daemon/pvcd.sample.yaml +++ b/node-daemon/pvcd.sample.yaml @@ -12,6 +12,8 @@ pvc: # node: The (short) hostname of the node, set during provisioning node: pvc-hv1 + # debug: Enable or disable debug output + debug: False # functions: The daemon functions to enable functions: # enable_hypervisor: Enable or disable hypervisor functionality diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index 095c526f..a54974d3 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -167,7 +167,7 @@ def readConfig(pvcd_config_file, myhostname): # Handle debugging config try: config_debug = { - 'debug': o_config['debug'] + 'debug': o_config['pvc']['debug'] } except: config_debug = {