Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Remove debug prints that were left in and fix debug logging #5527

Merged
merged 5 commits into from
May 14, 2024

Conversation

rix0rrr
Copy link
Collaborator

@rix0rrr rix0rrr commented May 14, 2024

The user activity tracking code logs a lot of errors to the JavaScript console. Nothing goes wrong, but the postJson function that is begin used expects a 200 response, but is getting a 204 response.

Only signal an error if we actually get a 400 or higher response.

Also remove some Python print()s that were left in most likely for debugging.

How to test

Open the console, use the website, observe that the following error does not appear:

image

rix0rrr and others added 2 commits May 14, 2024 11:14
The user activity tracking code logs a lot of errors to the JavaScript
console. Nothing goes wrong, but the `postJson` function that is begin
used expects a `200` response, but is getting a `204` response.

Only signal an error if we actually get a `400` or higher response.

Also remove some Python `print()`s that were left in most likely for
debugging.
@rix0rrr rix0rrr requested a review from hasan-sh May 14, 2024 09:27
Copy link
Contributor

mergify bot commented May 14, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 9aee957 into main May 14, 2024
12 checks passed
@mergify mergify bot deleted the fix-printing-and-error-logging branch May 14, 2024 14:56
Copy link
Contributor

mergify bot commented May 14, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants