From 0891e7f1bc9ea2f14bd6d3eaff4aa1a242bdf950 Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 26 Apr 2019 03:58:11 +0000 Subject: [PATCH] Fix logging messages not appearing --- PFERD/ffm.py | 2 +- PFERD/ilias.py | 2 +- PFERD/norbert.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PFERD/ffm.py b/PFERD/ffm.py index 7150bbb..487b1b6 100644 --- a/PFERD/ffm.py +++ b/PFERD/ffm.py @@ -23,7 +23,7 @@ class FfM: self._session = requests.Session() def synchronize(self, urlpart, to_dir, transform=lambda x: x): - logging.info(f" Synchronizing {urlpart} to {to_dir} using the FfM synchronizer.") + logger.info(f" Synchronizing {urlpart} to {to_dir} using the FfM synchronizer.") sync_path = pathlib.Path(self.base_path, to_dir) diff --git a/PFERD/ilias.py b/PFERD/ilias.py index 96ed7b5..84901f4 100644 --- a/PFERD/ilias.py +++ b/PFERD/ilias.py @@ -22,7 +22,7 @@ class ILIAS: self._auth = ShibbolethAuthenticator(base_path / cookie_file) def synchronize(self, ref_id, to_dir, transform=lambda x: x, filter=lambda x: True): - logging.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the ILIAS synchronizer.") + logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the ILIAS synchronizer.") sync_path = pathlib.Path(self.base_path, to_dir) orga = Organizer(self.base_path, sync_path) diff --git a/PFERD/norbert.py b/PFERD/norbert.py index 8c7514b..08b43bc 100644 --- a/PFERD/norbert.py +++ b/PFERD/norbert.py @@ -26,7 +26,7 @@ class Norbert: self._session = requests.Session() def synchronize(self, to_dir, transform=lambda x: x, unzip=lambda _: True): - logging.info(f" Synchronizing to {to_dir} using the Norbert synchronizer.") + logger.info(f" Synchronizing to {to_dir} using the Norbert synchronizer.") sync_path = pathlib.Path(self.base_path, to_dir) orga = Organizer(self.base_path, sync_path)