Skip to content

Commit

Permalink
error logs are added
Browse files Browse the repository at this point in the history
  • Loading branch information
ikaratass committed Nov 22, 2022
1 parent f3dc737 commit 2a5093b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iso15118/secc/states/iso15118_20_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ async def process_message(
# in the ServiceDetailReq message was not part of the offered
# EnergyTransferServiceList or VASList during ServiceDiscovery.
response_code = ResponseCode.FAILED_SERVICE_ID_INVALID

logger.error(f"Service Id is invalid for {message}")
service_detail_res = ServiceDetailRes(
header=MessageHeader(
session_id=self.comm_session.session_id, timestamp=time.time()
Expand Down
1 change: 1 addition & 0 deletions iso15118/secc/states/iso15118_2_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ async def process_message(
Timeouts.V2G_SECC_SEQUENCE_TIMEOUT,
Namespace.ISO_V2_MSG_DEF,
)
logger.error(f"Service ID is invalid for {message}")
return

parameter_set: List[ParameterSet] = []
Expand Down

0 comments on commit 2a5093b

Please sign in to comment.