Skip to content

Commit

Permalink
fix(vcs): log failures as warning
Browse files Browse the repository at this point in the history
So that these are visible without a debug mode (see #12406 and #12439).
  • Loading branch information
nijel committed Sep 9, 2024
1 parent 9a01e7d commit 9148c82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion weblate/vcs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,10 @@ def failed_pull_request(
self, error: str, pr_url: str, response: requests.Response, data: dict
) -> NoReturn:
status_code = response.status_code
self.log(f"Creating pull request via {pr_url} failed ({status_code}): {data}")
self.log(
f"Creating pull request via {pr_url} failed ({status_code}): {data!r}",
level=logging.WARNING,
)
raise RepositoryError(
-1, f"Could not create pull request {status_code}: {error}"
)
Expand Down

0 comments on commit 9148c82

Please sign in to comment.