From: Michael Tremer Date: Sat, 25 Aug 2012 15:39:57 +0000 (+0000) Subject: plugins: Filenames should contain the ID. X-Git-Tag: 0.0.2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75b3f22e44d411bbdfb15580ae0e78f037a68458;p=collecty.git plugins: Filenames should contain the ID. --- diff --git a/collecty/plugins/base.py b/collecty/plugins/base.py index 1ccf2f5..e06df93 100644 --- a/collecty/plugins/base.py +++ b/collecty/plugins/base.py @@ -102,7 +102,7 @@ class Plugin(threading.Thread): self.running = True self.timer = Timer(self.interval) - self.log.info(_("Successfully initialized.")) + self.log.info(_("Successfully initialized (%s).") % self.id) def __repr__(self): return "" % self.name @@ -133,7 +133,7 @@ class Plugin(threading.Thread): """ The absolute path to the RRD file of this plugin. """ - return os.path.join(DATABASE_DIR, "%s.rrd" % self.name) + return os.path.join(DATABASE_DIR, "%s.rrd" % self.id) def create(self): """