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 better logging #3

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Add better logging #3

merged 4 commits into from
Jan 16, 2024

Conversation

poolski
Copy link
Owner

@poolski poolski commented Jan 16, 2024

  • Add better error logging/handling
  • Update vendor dependencies

Rather than just returnin an error, wrap where the error has come from
so we know what's borked a bit better.
If we don't have this configured, the app has no way to know what sensor
to read. Previously the value was hard-coded which was stupid, since not
everyone is me and don't have all the same sensor values.
Don't just panic if we don't get the expected number of results from the
API. Instead, return a sensible error so the user doesn't see a horrible
stacktrace.
@poolski poolski merged commit 9474712 into main Jan 16, 2024
1 check passed
@poolski poolski deleted the add-more-logging branch January 16, 2024 17:07
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.

1 participant