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

Add: Web-ui status messages in a json file #6101

Merged
merged 9 commits into from
Jul 19, 2017

Conversation

goedzo
Copy link
Contributor

@goedzo goedzo commented Jul 19, 2017

This is a new feature that allows the web-ui to display the console messages on the site. It hooks the event manager to write interesting events to events-%s.json file on disk.

This is needed before the web-ui is able to have a console display on screen.

Importing Latest dev build from Head
With this change, the interesting events are also written to a json file in web folder. This allows the web-ui to display the event messages on screen. With this the web-ui can now see in detail what the bot is actually doing by refreshing the json file.

With         self.MaxEventlog = 50
you can limit the amount of lines to save on disk. This to avoid the json file gets way to large to deal with!
@mention-bot
Copy link

@goedzo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @douglascamata, @mjmadsen and @davidakachaos to be potential reviewers.

@Jcolomar Jcolomar merged commit 9c7ac63 into PokemonGoF:dev Jul 19, 2017
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.

3 participants