From 52794ac7f40ee65d7a5b416e369a49a255679391 Mon Sep 17 00:00:00 2001 From: Terje Kvernes Date: Tue, 23 Jan 2024 11:30:21 +0100 Subject: [PATCH] Log the server name and not the server object. --- cvmfsscraper/repository.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, )