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

Feature/some updates and fixes #232

Conversation

lukaslombriserdesignwerk
Copy link
Contributor

No description provided.

Comment on lines +219 to +229
logger.error(
f"EXI message (ns={self.get_exi_ns(v2gtp_msg.payload_type)}) "
f"where validation failed: {v2gtp_msg.payload.hex()}"
)
return
except EXIDecodingError as exc:
logger.exception(f"{exc}")
logger.error(
f"EXI message (ns={self.get_exi_ns(v2gtp_msg.payload_type)}) "
f"where error occured: {v2gtp_msg.payload.hex()}"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

We have an env to enable the logging of the EXI messages:
https://github.com/SwitchEV/iso15118/blob/master/iso15118/shared/settings.py#L18

wouldnt that satisfy your needs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Those messages are just logged in case of an exception. This way it is possible to reproduce the situation in simulation.

iso15118/shared/messages/datatypes.py Outdated Show resolved Hide resolved
Comment on lines +1 to +8
from dataclasses import dataclass


@dataclass
class ExiMessageContainer:
message_name: str
json_str: str
description: str = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

I would vote on putting this in the messages/init.py or in the tests/conftest.py. What do you think @lukaslombriserdesignwerk @shalinnijel2 ?

@lukaslombriserdesignwerk lukaslombriserdesignwerk force-pushed the feature/some_updates_and_fixes branch 3 times, most recently from 7224837 to fd45149 Compare May 22, 2023 13:05
@lukaslombriserdesignwerk
Copy link
Contributor Author

Hi André
I have rebased the branch. Please check comments and the new commit.

cheers
Lukas

@lukaslombriserdesignwerk lukaslombriserdesignwerk force-pushed the feature/some_updates_and_fixes branch from fd45149 to 19512cb Compare May 23, 2023 09:13
@lukaslombriserdesignwerk
Copy link
Contributor Author

Hi André

It would be great if you could make the review that it can be merged on the master branch.
Thank you very much!

cheers

@tropxy
Copy link
Contributor

tropxy commented Jun 23, 2023 via email

@lukaslombriserdesignwerk lukaslombriserdesignwerk deleted the feature/some_updates_and_fixes branch July 12, 2023 06:27
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.

3 participants