mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-10 17:03:37 +00:00
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:
parent
3e7cc1f365
commit
30320b3c71
7 changed files with 59 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue