Skip to content

Commit 87c0b21

Browse files
authored
chore: add more context to logged warning (#18051)
1 parent ec1f518 commit 87c0b21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

warehouse/accounts/services.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@ def get_domain_status(self, domain: str) -> list[str] | None:
10091009
return None
10101010

10111011
if errors := resp.json().get("errors"):
1012-
logger.warning("Error from Domainr: %r", errors)
1012+
logger.warning(
1013+
{"status": "Error from Domainr", "errors": errors, "domain": domain}
1014+
)
10131015
return None
10141016

10151017
return resp.json()["status"][0]["status"].split()

0 commit comments

Comments
 (0)