diff --git a/cvmfsscraper/repository.py b/cvmfsscraper/repository.py index 19058bc..1581465 100644 --- a/cvmfsscraper/repository.py +++ b/cvmfsscraper/repository.py @@ -70,7 +70,7 @@ def __str__(self) -> str: def scrape(self) -> None: """Scrape the repository.""" - log.debug("Scraping repository", server=self.server, name=self.name, url=self.path) + log.debug("Scraping repository", server=self.server.name, name=self.name, url=self.path) try: cvmfspublished = self.fetch_cvmfspublished() self.parse_cvmfspublished(cvmfspublished) @@ -78,7 +78,7 @@ def scrape(self) -> None: log.warn( "Scrape error", exc=exc, - server=self.server, + server=self.server.name, name=self.name, url=self.path, ) @@ -91,7 +91,7 @@ def scrape(self) -> None: log.warn( "Scrape error", exc=exc, - server=self.server, + server=self.server.name, name=self.name, url=self.path, )