Remove async variable for compatibility

This commit is contained in:
VirtuBox
2019-12-04 14:58:04 +01:00
parent 96f4332dce
commit 732ff51d9f
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ class Log:
"""
Logs debug messages into log file
"""
self.app.log.debug(Log.HEADER + msg + Log.ENDC)
self.app.log.debug(Log.HEADER + msg + Log.ENDC, __name__)
def wait(self, msg, end='\r', log=True):
"""

View File

@@ -65,7 +65,7 @@ class LogWatcher(object):
def __del__(self):
self.close()
def loop(self, interval=0.1, async=False):
def loop(self, interval=0.1, req_async=False):
"""Start the loop.
If async is True make one loop then return.
"""
@@ -73,7 +73,7 @@ class LogWatcher(object):
self.update_files()
for fid, file in list(iter(self.files_map.items())):
self.readfile(file)
if async:
if req_async:
return
time.sleep(interval)