Skip to content

Commit

Permalink
worker: Fix logging retry number
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Jan 26, 2025
1 parent 4860f9b commit bc25c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def forward_webhook(payload: Dict[str, Any], event_type: str) -> None:
json=payload,
headers={
"X-GitHub-Event": event_type,
"Content-Type": "application/json"
},
timeout=30.0,
)
Expand All @@ -50,5 +49,5 @@ def forward_webhook(payload: Dict[str, Any], event_type: str) -> None:

except Exception as e:
WEBHOOK_FORWARDS.labels(status="error").inc()
print(f"Error forwarding webhook (attempt {message.retries}): {str(e)}")
print(f"Error forwarding webhook (attempt {message.message.retries}): {str(e)}")
raise

0 comments on commit bc25c98

Please sign in to comment.