Skip to content

Commit

Permalink
Merge pull request #13 from EESSI/warn_with_server_name_not_server_ob…
Browse files Browse the repository at this point in the history
…ject

Log the server name and not the server object.
  • Loading branch information
terjekv authored Jan 25, 2024
2 parents 7a79085 + 52794ac commit 39c79db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cvmfsscraper/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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)
except Exception as exc:
log.warn(
"Scrape error",
exc=exc,
server=self.server,
server=self.server.name,
name=self.name,
url=self.path,
)
Expand All @@ -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,
)
Expand Down

0 comments on commit 39c79db

Please sign in to comment.