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 error logging if EVNotify SoC cannot be retrieved #1602

Merged
merged 1 commit into from Oct 3, 2021

Conversation

yankee42
Copy link
Contributor

@yankee42 yankee42 commented Oct 2, 2021

It looks like in the moment EVNotify integration with openWB is broken. I have no idea why. I check the source code and if I try to imitate what it is doing locally it works fine.

However the current implementation does not give good log messages. Like what is the actual response from EVNotify? Was there maybe a non 2xx response?

This PR does not fix the underlying problem, but improves error logging if something is wrong. Hopefully it helps to identify the problem linked and other similar problems in the future.

Note that I only tested the code isolated in my stubbed development environment. It still needs to be tested on an actual system.

@benderl benderl merged commit d5e3cee into snaptec:master Oct 3, 2021
@yankee42
Copy link
Contributor Author

yankee42 commented Oct 3, 2021

That was quick, thx. However something is still wrong. Nothing is logged. I searched around for a bit and I could not find anything wrong with the code. However I tested my code only with python3. It is not compatible with python2. I have no idea what the installed version of python and the default is... However I see that many script call explicitly python3 instead of just python as I did in main.sh line 69. Could this be the culprit?

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.

None yet

2 participants