summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Reporting.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-19 15:05:51 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-19 15:05:51 -0400
commit71d7285c405bd639f1f9f2642ea8fb567b97caec (patch)
treed211f7aa4f45ae513ebab3923e14d9b2eb4965a3 /src/lib/Bcfg2/Server/Plugins/Reporting.py
parent182f95cc48029617825dabede3fc812c36995146 (diff)
downloadbcfg2-71d7285c405bd639f1f9f2642ea8fb567b97caec.tar.gz
bcfg2-71d7285c405bd639f1f9f2642ea8fb567b97caec.tar.bz2
bcfg2-71d7285c405bd639f1f9f2642ea8fb567b97caec.zip
Debug improvements:
* Added (set|toggle)_core_debug RMI methods to set debugging in the core * Enable plugin debugging when run with -d * Allow enabling debugging on Reporting plugin before threads have started
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Reporting.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Reporting.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Reporting.py b/src/lib/Bcfg2/Server/Plugins/Reporting.py
index d072f1a33..a6dc2c1ef 100644
--- a/src/lib/Bcfg2/Server/Plugins/Reporting.py
+++ b/src/lib/Bcfg2/Server/Plugins/Reporting.py
@@ -65,10 +65,13 @@ class Reporting(Statistics, Threaded, PullSource, Debuggable):
(self.name, traceback.format_exc().splitlines()[-1])
self.logger.error(msg)
raise PluginInitError(msg)
+ if self.debug_flag:
+ self.transport.set_debug(self.debug_flag)
def set_debug(self, debug):
rv = Debuggable.set_debug(self, debug)
- self.transport.set_debug(debug)
+ if self.transport is not None:
+ self.transport.set_debug(debug)
return rv
def process_statistics(self, client, xdata):