Properly support debug logging via config
This commit is contained in:
parent
c6e58796ba
commit
8bdec03cf1
|
@ -12,6 +12,8 @@
|
||||||
pvc:
|
pvc:
|
||||||
# node: The (short) hostname of the node, set during provisioning
|
# node: The (short) hostname of the node, set during provisioning
|
||||||
node: pvc-hv1
|
node: pvc-hv1
|
||||||
|
# debug: Enable or disable debug output
|
||||||
|
debug: False
|
||||||
# functions: The daemon functions to enable
|
# functions: The daemon functions to enable
|
||||||
functions:
|
functions:
|
||||||
# enable_hypervisor: Enable or disable hypervisor functionality
|
# enable_hypervisor: Enable or disable hypervisor functionality
|
||||||
|
|
|
@ -167,7 +167,7 @@ def readConfig(pvcd_config_file, myhostname):
|
||||||
# Handle debugging config
|
# Handle debugging config
|
||||||
try:
|
try:
|
||||||
config_debug = {
|
config_debug = {
|
||||||
'debug': o_config['debug']
|
'debug': o_config['pvc']['debug']
|
||||||
}
|
}
|
||||||
except:
|
except:
|
||||||
config_debug = {
|
config_debug = {
|
||||||
|
|
Loading…
Reference in New Issue