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

Improve logs on graph update exception thrown #227

Conversation

efernandez
Copy link
Collaborator

  • Catch graph update exceptions and log FATAL message

    When the graph update() method throws an exception the node crashes and
    there is no way to know what transaction caused the exception because we
    call notify after successfully updating the graph.

    This catches any exception thrown by the graph update method and logs a
    FATAL message that includes the current graph and the new transaction.

  • Add full stop to exception messages

    This homogenizes the exception messages from all exceptions thrown by
    the HashGraph class.

@efernandez efernandez self-assigned this May 21, 2021
@efernandez efernandez added the enhancement New feature or request label May 21, 2021
@efernandez efernandez force-pushed the improve-logs-on-graph-update-exception-thrown branch from 1147afb to ec583bf Compare May 21, 2021 13:02
When the graph update method throws an exception the node crashes and
there is no way to know what transaction caused the exception because we
call notify after successfully updating the graph.

This catches any exception thrown by the graph update method and logs a
FATAL message that includes the current graph and the new transaction.
This homogenizes the exception messages from all exceptions thrown by
the HashGraph class.
@efernandez efernandez force-pushed the improve-logs-on-graph-update-exception-thrown branch from ec583bf to 1ad0500 Compare May 24, 2021 08:58
@svwilliams svwilliams merged commit d8d1540 into locusrobotics:devel Jun 1, 2021
ayrton04 pushed a commit that referenced this pull request Jul 11, 2021
* Catch graph update exceptions and log fatal msg

When the graph update method throws an exception the node crashes and
there is no way to know what transaction caused the exception because we
call notify after successfully updating the graph.

This catches any exception thrown by the graph update method and logs a
FATAL message that includes the current graph and the new transaction.

* Add full stop to exception messages

This homogenizes the exception messages from all exceptions thrown by
the HashGraph class.
@efernandez efernandez deleted the improve-logs-on-graph-update-exception-thrown branch November 26, 2021 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants