hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.27k stars 282 forks source link

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

Closed rix0rrr closed 1 month ago

rix0rrr commented 1 month ago

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

mergify[bot] commented 1 month ago

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[bot] commented 1 month ago

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).