]> git.ipfire.org Git - collecty.git/commitdiff
plugins: Filenames should contain the ID.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Aug 2012 15:39:57 +0000 (15:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Aug 2012 15:39:57 +0000 (15:39 +0000)
collecty/plugins/base.py

index 1ccf2f58fcb099a6640a0d191806f3ba6f16cc60..e06df93c15a58f01e1cad82a4516e3bc00d8d0d6 100644 (file)
@@ -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 "<Plugin %s>" % 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):
                """