Skip to content

Commit

Permalink
changes: Minor fix to error log in GitPoller._process_changes.
Browse files Browse the repository at this point in the history
When an error occured while retrieving a rev information (author/timestamp/...)
the error log would log the new HEAD rev of the branch instead of the problematic rev.
  • Loading branch information
tdesveaux authored and p12tic committed May 6, 2024
1 parent dcb0e69 commit ab75936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/changes/gitpoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def _process_changes(self, newRev, branch):
failures = [r[1] for r in results if not r[0]]
if failures:
for failure in failures:
log.err(failure, f"while processing changes for {newRev} {branch}")
log.err(failure, f"while processing changes for {rev} {branch}")
# just fail on the first error; they're probably all related!
failures[0].raiseException()

Expand Down

0 comments on commit ab75936

Please sign in to comment.