From 0b00a9c26b89708f259a9d990de50351e5c9236e Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Thu, 23 Apr 2020 19:55:37 +0200 Subject: [PATCH] Log when starting to synchronize --- PFERD/pferd.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PFERD/pferd.py b/PFERD/pferd.py index cda28eb..f8adb9c 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -1,3 +1,4 @@ +import logging from pathlib import Path from typing import Optional @@ -9,9 +10,13 @@ from .location import Location from .organizer import Organizer from .tmp_dir import TmpDir from .transform import Transform, apply_transform +from .utils import PrettyLogger # TODO save known-good cookies as soon as possible -# TODO print synchronizer name before beginning synchronization + + +LOGGER = logging.getLogger(__name__) +PRETTY = PrettyLogger(LOGGER) class Pferd(Location): @@ -65,6 +70,7 @@ class Pferd(Location): ) -> None: # This authenticator only works with the KIT ilias instance. authenticator = KitShibbolethAuthenticator(username=username, password=password) + PRETTY.starting_synchronizer(target, "ILIAS", course_id) self._ilias( target=target, base_url="https://ilias.studium.kit.edu/",