Skip to content

Replace logging messages with match object serialization #85

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

Merged
merged 35 commits into from
Apr 14, 2023

Conversation

ImogenBits
Copy link
Collaborator

This moves a bunch of code around to make it possible to serialize the match objects we generate, and removes the then unnecessary logging messages. This makes it so we can easily display the match in the web interface, and gives a much more detailed and programatically parseable view into what happened to users who are testing their code.

The cli interface is also changed marginally since we don't have a logging path anymore and we don't dump the resulting match object by default. Maybe we should default to doing that, but that would mean choosing some path on the user's device to write a bunch of json data into, which seems iffy. Since we now have a nicer cli output users shouldn't really need the resulting json file generally.

@Benezivas
Copy link
Collaborator

Thank you very much, this seems to behave like we discussed.

@Benezivas Benezivas merged commit 7f1513f into Algorithmic-Battle:4.0.0-rc Apr 14, 2023
@ImogenBits ImogenBits deleted the remove_logs branch April 14, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants