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

Check to see if we error on any events in handle_event function - TRON-2051 #932

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EmanElsaban
Copy link
Contributor

This PR adds a try/except block to check to see if we error on any event in handle_event function. Erroring on any event means we don't handle this event at all and thus we don't update Tron's state machine for it

if clog is None:
log.debug("Clog logger unavailable. Unable to log event")
else:
clog.log_line("tmp_missed_tronevents", json.dumps(event)) # Capture event
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be str(event)?

@nemacysts
Copy link
Member

@EmanElsaban did we end up including these changes in the python upgrade branch? (i.e., can we close this PR?)

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.

None yet

2 participants