add possibility to start Plugins asynchron

If you are using many Plugins or Plugins with a long execution time you could execute them in an asynchronous manner.
It must be pointed out that enabling (0|1) this consume time, so don't use it for one rapid Plugin.
This commit is contained in:
JHCD 2015-07-30 18:55:36 +02:00
parent 3e7cc1f365
commit 30320b3c71
7 changed files with 59 additions and 8 deletions

View file

@ -16,3 +16,8 @@ class MyTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler):
def setBackupCount(self, backupCount):
"""Set/Change backupCount"""
self.backupCount = backupCount
def close(self):
"""Make shure logfile will be flushed"""
self.flush()
super(self.__class__, self).close()