Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Hide voltage warnings from previous boots #150

Open
mtlynch opened this issue Sep 9, 2021 · 0 comments
Open

Hide voltage warnings from previous boots #150

mtlynch opened this issue Sep 9, 2021 · 0 comments
Labels

Comments

@mtlynch
Copy link
Contributor

mtlynch commented Sep 9, 2021

The voltage log collector shows voltage warnings that occurred at any time, but we really only care about the ones that happened on the current boot. It should be possible to filter the messages by changing the journalctl invokation to:

sudo journalctl --boot --lines=all -xe | grep -i "voltage"

We also might not need the -xe flag. I haven't tested whether it's necessary to get the voltage logs. If we do, we should switch to the verbose versions of the flags for better clarify:

-x --catalog Add message explanations where available
-e --pager-end Immediately jump to the end in the pager

Testing note

An easy way to force TinyPilot to emit a low voltage warning is to connect its power cable to a PC's USB port instead of a real 3 Amp USB adaptor.

@mtlynch mtlynch added the small label Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant