logging rethink

* well lets replace f-strings by %s as it is originally recommended
* use syslog handler by default
This commit is contained in:
2021-08-17 00:23:34 +03:00
parent b94179e071
commit fc0474fa8f
13 changed files with 61 additions and 41 deletions

View File

@ -90,7 +90,7 @@ class Watcher:
try:
parse_single(item)
except Exception:
self.logger.exception(f"cannot parse item f{item} to package")
self.logger.exception("cannot parse item %s to package", item)
def _cache_save(self) -> None:
"""