Adding additional IDs to logInfo
MODIFY
src/client/ocpi/CpoOCPIClient.ts
src/client/ocpi/CpoOCPIClient.ts
@@ -216,6 +216,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OCPI_AUTHORIZE_TOKEN,
message: `OCPI Tag ID '${token.uid}' has been authorized successfully`,
@@ -262,6 +265,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OCPI_START_SESSION,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} OCPI Transaction has been started successfully`,
@@ -309,6 +315,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OCPI_PUSH_SESSIONS,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} OCPI Transaction has been patched successfully`,
@@ -355,6 +364,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OCPI_STOP_SESSION,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} OCPI Transaction has been stopped successfully`,
@@ -411,6 +423,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OCPI_PUSH_CDRS,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} OCPI CDR has been sent successfully`,
@@ -446,6 +461,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OCPI_PATCH_STATUS,
message: 'Charging Station has been removed successfully',
@@ -857,6 +875,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OCPI_CHECK_CDRS,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} CDR has been checked successfully`,
@@ -905,6 +926,9 @@ export default class CpoOCPIClient extends OCPIClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.OCPI_CHECK_SESSIONS,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} Transaction has been checked successfully`,

MODIFY
src/client/ocpp/json/JsonRestChargingStationClient.ts
src/client/ocpp/json/JsonRestChargingStationClient.ts
@@ -106,6 +106,9 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
await Logging.logInfo({
tenantID: this.tenantID,
siteID: this.chargingStation.siteID,
+ siteAreaID: this.chargingStation.siteAreaID,
+ companyID: this.chargingStation.companyID,
+ chargeBoxID: this.chargingStation.id,
source: this.chargingStation.id,
action: ServerAction.WS_REST_CLIENT_CONNECTION_OPENED,
module: MODULE_NAME, method: 'onOpen',
@@ -140,6 +143,9 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
await Logging.logInfo({
tenantID: this.tenantID,
siteID: this.chargingStation.siteID,
+ siteAreaID: this.chargingStation.siteAreaID,
+ companyID: this.chargingStation.companyID,
+ chargeBoxID: this.chargingStation.id,
source: this.chargingStation.id,
action: ServerAction.WS_REST_CLIENT_CONNECTION_OPENED,
module: MODULE_NAME, method: 'onOpen',
@@ -154,6 +160,9 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
await Logging.logInfo({
tenantID: this.tenantID,
siteID: this.chargingStation.siteID,
+ siteAreaID: this.chargingStation.siteAreaID,
+ companyID: this.chargingStation.companyID,
+ chargeBoxID: this.chargingStation.id,
source: this.chargingStation.id,
action: ServerAction.WS_REST_CLIENT_CONNECTION_CLOSED,
module: MODULE_NAME, method: 'onClose',

MODIFY
src/client/oicp/CpoOICPClient.ts
src/client/oicp/CpoOICPClient.ts
@@ -167,6 +167,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: transaction.user,
action: ServerAction.OICP_PUSH_SESSIONS,
@@ -733,6 +736,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: user,
action: ServerAction.OICP_AUTHORIZE_STOP,
@@ -830,6 +836,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: transaction.user,
action: ServerAction.OICP_PUSH_CDRS,
@@ -910,6 +919,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: transaction.user,
action: ServerAction.OICP_SEND_CHARGING_NOTIFICATION_START,
@@ -994,6 +1006,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: transaction.user,
action: ServerAction.OICP_SEND_CHARGING_NOTIFICATION_PROGRESS,
@@ -1092,6 +1107,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logInfo({
tenantID: this.tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
user: transaction.user,
action: ServerAction.OICP_SEND_CHARGING_NOTIFICATION_END,

MODIFY
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
@@ -147,6 +147,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OCPP_PARAM_UPDATE,
message: `${Utils.buildConnectorInfo(connectorID)} Amperage limit set to ${connector.amperageLimit}A following an update of OCPP Parameter '${ocppParamName}'`,
@@ -472,6 +475,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.GET_CONNECTOR_CURRENT_LIMIT,
message: `${Utils.buildConnectorInfo(connectorID)} Current limit: ${result.limitAmps} A, ${result.limitWatts} W, source '${Utils.getConnectorLimitSourceString(result.limitSource)}'`,
@@ -501,6 +507,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.GET_CONNECTOR_CURRENT_LIMIT,
message: `${Utils.buildConnectorInfo(connectorID)} Current limit: ${result.limitAmps} A, ${result.limitWatts} W, source '${Utils.getConnectorLimitSourceString(result.limitSource)}'`,
@@ -649,6 +658,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.GET_CONNECTOR_CURRENT_LIMIT,
message: `${Utils.buildConnectorInfo(connectorID)} Current limit: ${result.limitAmps} A, ${result.limitWatts} W, source '${Utils.getConnectorLimitSourceString(result.limitSource)} in DB'`,
@@ -668,6 +680,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.GET_CONNECTOR_CURRENT_LIMIT,
message: `${Utils.buildConnectorInfo(connectorID)} Current limit: ${result.limitAmps} A, ${result.limitWatts} W, source '${Utils.getConnectorLimitSourceString(result.limitSource)} in DB'`,
@@ -688,6 +703,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.GET_CONNECTOR_CURRENT_LIMIT,
message: `${Utils.buildConnectorInfo(connectorID)} Current limit: ${result.limitAmps} A, ${result.limitWatts} W, source '${Utils.getConnectorLimitSourceString(result.limitSource)} in DB'`,

MODIFY
src/scheduler/tasks/CheckOfflineChargingStationsTask.ts
src/scheduler/tasks/CheckOfflineChargingStationsTask.ts
@@ -44,6 +44,9 @@ export default class CheckOfflineChargingStationsTask extends SchedulerTask {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OFFLINE_CHARGING_STATION,
module: MODULE_NAME, method: 'processTenant',

MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -113,6 +113,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.BOOT_NOTIFICATION,
module: MODULE_NAME, method: 'handleBootNotification',
@@ -204,6 +207,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.STATUS_NOTIFICATION,
module: MODULE_NAME, method: 'handleStatusNotification',
@@ -300,6 +306,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.METER_VALUES,
user: transaction.userID,
@@ -338,6 +347,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleAuthorize',
action: ServerAction.AUTHORIZE, user: (authorize.user ? authorize.user : null),
@@ -382,6 +394,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.DIAGNOSTICS_STATUS_NOTIFICATION,
module: MODULE_NAME, method: 'handleDiagnosticsStatusNotification',
@@ -418,6 +433,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleFirmwareStatusNotification',
action: ServerAction.FIRMWARE_STATUS_NOTIFICATION,
@@ -478,6 +496,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleStartTransaction',
action: ServerAction.START_TRANSACTION, user: user,
@@ -529,6 +550,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleDataTransfer',
action: ServerAction.CHARGING_STATION_DATA_TRANSFER, message: 'Data Transfer has been saved',
@@ -602,6 +626,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleStopTransaction',
action: ServerAction.STOP_TRANSACTION,
@@ -773,6 +800,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'processConnectorStatusNotification',
action: ServerAction.STATUS_NOTIFICATION,
@@ -900,6 +930,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
user: lastTransaction.userID,
module: MODULE_NAME, method: 'checkAndUpdateLastCompletedTransaction',
@@ -913,6 +946,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
user: lastTransaction.userID,
module: MODULE_NAME, method: 'checkAndUpdateLastCompletedTransaction',
@@ -1239,6 +1275,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'updateChargingStationWithTransaction',
action: ServerAction.CONSUMPTION,
@@ -2120,6 +2159,9 @@ export default class OCPPService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'getTransactionFromMeterValues',
action: ServerAction.STOP_TRANSACTION,

MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -1208,6 +1208,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.UPDATE_CHARGING_STATION_WITH_TEMPLATE,
module: MODULE_NAME, method: 'enrichChargingStationConnectorWithTemplate',
@@ -1272,6 +1275,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.UPDATE_CHARGING_STATION_WITH_TEMPLATE,
module: MODULE_NAME, method: 'applyTemplateToChargingStation',
@@ -1399,6 +1405,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_PROFILE_DELETE,
module: MODULE_NAME, method: 'clearAndDeleteChargingProfile',
@@ -1484,6 +1493,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_PROFILE_UPDATE,
module: MODULE_NAME, method: 'setAndSaveChargingProfile',
@@ -1658,6 +1670,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'requestAndSaveChargingStationOcppParameters',
@@ -1688,6 +1703,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'updateChargingStationOcppParametersWithTemplate',
@@ -1709,6 +1727,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'updateChargingStationOcppParametersWithTemplate',
@@ -1726,6 +1747,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'updateChargingStationOcppParametersWithTemplate',
@@ -1737,6 +1761,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'updateChargingStationOcppParametersWithTemplate',
@@ -1809,6 +1836,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_CHANGE_CONFIGURATION,
module: MODULE_NAME, method: 'requestChangeChargingStationOcppParameter',
@@ -1882,6 +1912,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_RESET,
module: MODULE_NAME, method: 'triggerChargingStationReset',
@@ -2180,6 +2213,9 @@ export default class OCPPUtils {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.UPDATE_CHARGING_STATION_WITH_TEMPLATE,
module: MODULE_NAME, method: 'enrichChargingStationWithTemplate',

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -478,6 +478,9 @@ export default class ChargingStationService {
await Logging.logInfo({
tenantID: req.user.tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: action,
user: req.user,
@@ -1620,6 +1623,9 @@ export default class ChargingStationService {
await Logging.logInfo({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
user: user,
module: MODULE_NAME, method: 'handleChargingStationCommand',

Adding additional IDs to logInfo