Add moduleName constant and prefix the SENT command log with
'OCPPRequestService.internalSendMessage:' to match the format of the
3 received-message logs in ChargingStation.ts (handleErrorMessage,
handleIncomingMessage, handleResponseMessage).
triggerMessage: false,
}
+const moduleName = 'OCPPRequestService'
+
export abstract class OCPPRequestService {
private static readonly instances = new Map<
new (ocppResponseService: OCPPResponseService) => OCPPRequestService,
clearTimeout(sendTimeout)
if (error == null) {
logger.debug(
- `${chargingStation.logPrefix()} >> Command '${commandName}' sent ${getMessageTypeString(
+ `${chargingStation.logPrefix()} ${moduleName}.internalSendMessage: >> Command '${commandName}' sent ${getMessageTypeString(
messageType
)} payload: ${messageToSend}`
)