Skip to content

Log connection errors#940

Open
jbmorley wants to merge 2 commits intoPiSupply:masterfrom
jbmorley:jbmorley/exit-with-error
Open

Log connection errors#940
jbmorley wants to merge 2 commits intoPiSupply:masterfrom
jbmorley:jbmorley/exit-with-error

Conversation

@jbmorley
Copy link

@jbmorley jbmorley commented Jan 4, 2023

This change updates pijuice_sys.py to exit with an error when failing to connect to the PiJuice, and logs the associated error.

I was finding it hard to debug multiple service restarts as a result of i2c permission errors on my system. This logging significantly helped me figure out what was going on; hopefully it's useful to others too.

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