Remove async variable for compatibility
This commit is contained in:
@@ -44,7 +44,7 @@ class Log:
|
|||||||
"""
|
"""
|
||||||
Logs debug messages into log file
|
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):
|
def wait(self, msg, end='\r', log=True):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class LogWatcher(object):
|
|||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def loop(self, interval=0.1, async=False):
|
def loop(self, interval=0.1, req_async=False):
|
||||||
"""Start the loop.
|
"""Start the loop.
|
||||||
If async is True make one loop then return.
|
If async is True make one loop then return.
|
||||||
"""
|
"""
|
||||||
@@ -73,7 +73,7 @@ class LogWatcher(object):
|
|||||||
self.update_files()
|
self.update_files()
|
||||||
for fid, file in list(iter(self.files_map.items())):
|
for fid, file in list(iter(self.files_map.items())):
|
||||||
self.readfile(file)
|
self.readfile(file)
|
||||||
if async:
|
if req_async:
|
||||||
return
|
return
|
||||||
time.sleep(interval)
|
time.sleep(interval)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user