Skip to content

Commit

Permalink
log namespace value (#328)
Browse files Browse the repository at this point in the history
* log namespace value

* Fixed return type
  • Loading branch information
shalinnijel2 authored Nov 23, 2023
1 parent 5e627d3 commit 74bd44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iso15118/shared/comm_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
def get_exi_ns(
self,
payload_type: Union[DINPayloadTypes, ISOV2PayloadTypes, ISOV20PayloadTypes],
) -> str:
) -> Namespace:
"""
Provides the right protocol namespace for the EXI decoder.
In DIN SPEC 70121 and ISO 15118-2, all messages are defined
Expand Down Expand Up @@ -206,7 +206,7 @@ async def process_message(self, message: bytes):
logger.trace( # type: ignore[attr-defined]
f"{self.comm_session.evse_id}:::"
f"{v2gtp_msg.payload.hex()}:::"
f"{self.get_exi_ns(v2gtp_msg.payload_type)}"
f"{self.get_exi_ns(v2gtp_msg.payload_type).value}"
)

except V2GMessageValidationError as exc:
Expand Down

0 comments on commit 74bd44e

Please sign in to comment.