Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
Signed-off-by: Maxwell Brown <[email protected]>
  • Loading branch information
Galactus22625 committed Nov 13, 2024
1 parent 7cfe303 commit 1e0ab63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UpdateTickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def editIssue(issueKey, url, auth, newSummary, newDescription):
return 1
elif response.statu_code == 429:
x = sleepvalues[attempt]
logging.error(f"Expected a response code of 200 or 204. Received a response code of {response.status_code}. Sleeping for {attempt} number of seconds before trying again.")
print(f"Expected a response code of 200 or 204. Received a response code of {response.status_code}. Sleeping for {attempt} number of seconds before trying again.")
time.sleep(x)
else:
logging.error(f"Expected a response code of 200 or 204. Received a response code of {response.status_code}")
Expand Down

0 comments on commit 1e0ab63

Please sign in to comment.