From: Michael Tremer Date: Sat, 1 Sep 2012 17:49:28 +0000 (+0000) Subject: Add some more verbose logging when creating/updating RRDs. X-Git-Tag: 0.0.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadb8fb0889de7d0d0aa440b8214a0355b46ee3a;p=collecty.git Add some more verbose logging when creating/updating RRDs. --- diff --git a/collecty/plugins/base.py b/collecty/plugins/base.py index 188c657..5767997 100644 --- a/collecty/plugins/base.py +++ b/collecty/plugins/base.py @@ -170,6 +170,8 @@ class DataSource(threading.Thread): rrdtool.create(self.file, *args) self.log.debug(_("Created RRD file %s.") % self.file) + for arg in args: + self.log.debug(" %s" % arg) def get_rrd_schema(self): schema = [ @@ -239,6 +241,13 @@ class DataSource(threading.Thread): return self.log.debug(_("Submitting data to database. %d entries.") % len(self.data)) + for data in self.data: + self.log.debug(" %s" % data) + + # Create the RRD files (if they don't exist yet or + # have vanished for some reason). + self.create() + rrdtool.update(self.file, *self.data) self.data = []