improve logging

This commit is contained in:
2026-04-03 16:15:29 +02:00
parent efd31686be
commit 4f37a1dd37

View File

@@ -1,13 +1,22 @@
import sys
sys.path.insert(0, "../src")
import logging
from cache import * # noqa: F401 — must be before adapter imports
from adapters import SCRAPERS
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format="%(asctime)s %(levelname)s %(name)s%(message)s",
datefmt="%Y-%m-%dT%H:%M:%S",
)
# --- change this to test a different adapter ---
ADAPTER = SCRAPERS['ooms']
ADAPTER = SCRAPERS['dewittegarantiemakelaars']
if __name__ == "__main__":
print(f"Testing adapter: {ADAPTER.__name__}")