From 732ff51d9fffec5028f2bb7c043bf9a472de649b Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 4 Dec 2019 14:58:04 +0100 Subject: [PATCH] Remove async variable for compatibility --- wo/core/logging.py | 2 +- wo/core/logwatch.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wo/core/logging.py b/wo/core/logging.py index dee2a81..46a7f61 100644 --- a/wo/core/logging.py +++ b/wo/core/logging.py @@ -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): """ diff --git a/wo/core/logwatch.py b/wo/core/logwatch.py index 0d51440..a42af54 100644 --- a/wo/core/logwatch.py +++ b/wo/core/logwatch.py @@ -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)