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

Use logging config from kuksa-python-sdk #22

Merged
merged 3 commits into from
May 20, 2024

Conversation

erikbosch
Copy link
Contributor

@erikbosch erikbosch commented May 8, 2024

Uses logging config from kuksa-python-sdk.

  • Requires an updated kuksa-client pypi package to work and changed dependency.
  • Also adapts to that Kuksa Python SDK no longer contains default tokens for webserver, so we must specify them explicitly
  • Also updates dash dependency

@@ -65,7 +65,7 @@ def start(self):

self._kuksa = KuksaClientThread(self._client_config)
self._kuksa.start()
self._kuksa.authorize()
self._kuksa.authorize(token_or_tokenfile=self._token_path)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously we did not consider what token was given in the config file, it worked anyway as kuksa-python-sdk had a default one which was the same one as we used in tests. This is an example on what we need to do to update client to latest kuksa-client. It should only affect VISS/websocket, but I assume we want to make sure thatw e support Websocket at least until end of year when Kuksa Server reaches end of life

@SebastianSchildt
Copy link
Contributor

Some weird line breaks in log

image

Not sure it come from this PR, but do we want that?

@erikbosch
Copy link
Contributor Author

It does not come from this PR, it is from this code: https://github.com/eclipse-kuksa/kuksa-can-provider/blob/main/dbcfeeder.py#L306

Copy link
Contributor

@SebastianSchildt SebastianSchildt left a comment

Choose a reason for hiding this comment

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

Did some manual testing, looking fine.

lgtm 🍰

@SebastianSchildt SebastianSchildt merged commit c399beb into eclipse-kuksa:main May 20, 2024
7 checks passed
@erikbosch erikbosch deleted the erik_logging branch October 31, 2024 12:59
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