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

Update logging and error handling #101

Merged
merged 3 commits into from
May 28, 2024
Merged

Update logging and error handling #101

merged 3 commits into from
May 28, 2024

Conversation

EliasJRH
Copy link
Contributor

@EliasJRH EliasJRH commented May 26, 2024

This PR updates some logging levels from INFO to DEBUG. This PR also adds DataBlockException which is raised if an error occurs while parsing a datablock and is handled by displaying the information about the block that raised the error.

In the parse_radio_block function, some of the try catches were moved around to more accurately represent when errors might occur while parsing and how they should be handled.

@EliasJRH EliasJRH requested a review from linguini1 May 26, 2024 22:36
@EliasJRH EliasJRH marked this pull request as draft May 26, 2024 23:39
@EliasJRH EliasJRH marked this pull request as ready for review May 27, 2024 15:37
@EliasJRH EliasJRH changed the title Change some info logging to debugs Update logging and error handling May 27, 2024
@@ -8,20 +8,13 @@
from modules.misc.converter import metres_to_feet, milli_degrees_to_celsius, pascals_to_psi


class BlockException(Exception):
pass
class DataBlockException(Exception):
Copy link
Collaborator

Choose a reason for hiding this comment

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

God bless you for this.

@linguini1 linguini1 merged commit c5002d4 into main May 28, 2024
4 checks passed
@linguini1 linguini1 deleted the eh/logging_refactor branch May 28, 2024 02:08
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