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)