mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Log when starting to synchronize
This commit is contained in:
parent
1ef85c45e5
commit
0b00a9c26b
@ -1,3 +1,4 @@
|
|||||||
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
@ -9,9 +10,13 @@ from .location import Location
|
|||||||
from .organizer import Organizer
|
from .organizer import Organizer
|
||||||
from .tmp_dir import TmpDir
|
from .tmp_dir import TmpDir
|
||||||
from .transform import Transform, apply_transform
|
from .transform import Transform, apply_transform
|
||||||
|
from .utils import PrettyLogger
|
||||||
|
|
||||||
# TODO save known-good cookies as soon as possible
|
# 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):
|
class Pferd(Location):
|
||||||
@ -65,6 +70,7 @@ class Pferd(Location):
|
|||||||
) -> None:
|
) -> None:
|
||||||
# This authenticator only works with the KIT ilias instance.
|
# This authenticator only works with the KIT ilias instance.
|
||||||
authenticator = KitShibbolethAuthenticator(username=username, password=password)
|
authenticator = KitShibbolethAuthenticator(username=username, password=password)
|
||||||
|
PRETTY.starting_synchronizer(target, "ILIAS", course_id)
|
||||||
self._ilias(
|
self._ilias(
|
||||||
target=target,
|
target=target,
|
||||||
base_url="https://ilias.studium.kit.edu/",
|
base_url="https://ilias.studium.kit.edu/",
|
||||||
|
Loading…
Reference in New Issue
Block a user