Adding additional IDs for logWarning
MODIFY
src/client/oicp/CpoOICPClient.ts
src/client/oicp/CpoOICPClient.ts
@@ -892,6 +892,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logWarning({
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,
@@ -973,6 +976,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logWarning({
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,
@@ -1068,6 +1074,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logWarning({
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,
@@ -1142,6 +1151,9 @@ export default class CpoOICPClient extends OICPClient {
await Logging.logWarning({
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_ERROR,

MODIFY
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
@@ -39,6 +39,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_LIMIT_POWER,
message: `Charge Point '${chargePoint.chargePointID}' is excluded from power limitation`,
@@ -51,6 +54,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_STATION_LIMIT_POWER,
message: `No OCPP Parameter provided in template for Charge Point '${chargePoint.chargePointID}'`,
@@ -196,6 +202,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.CHARGING_PROFILE_UPDATE,
message: 'Set Charging Profile on Connector ID 0 has been rejected, will try connector per connector',
@@ -272,6 +281,9 @@ export default abstract class ChargingStationVendorIntegration {
await Logging.logWarning({
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: 'clearChargingProfile',

MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -165,6 +165,9 @@ export default class OCPPService {
await Logging.logDebug({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleHeartbeat',
action: ServerAction.HEARTBEAT,
@@ -238,6 +241,9 @@ export default class OCPPService {
await Logging.logDebug({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'handleMeterValues',
action: ServerAction.METER_VALUES,
@@ -713,6 +719,9 @@ export default class OCPPService {
await Logging.logDebug({
tenantID: tenant.id,
siteID: transaction.siteID,
+ siteAreaID: transaction.siteAreaID,
+ companyID: transaction.companyID,
+ chargeBoxID: transaction.chargeBoxID,
source: transaction.chargeBoxID,
action: ServerAction.CHARGING_PROFILE_DELETE,
message: `${Utils.buildConnectorInfo(transaction.connectorId, transaction.id)} TX Charging Profile with ID '${chargingProfile.id}'`,
@@ -872,6 +881,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'checkAndUpdateLastCompletedTransaction',
action: ServerAction.STATUS_NOTIFICATION,
@@ -927,6 +939,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'checkAndUpdateLastCompletedTransaction',
action: ServerAction.STATUS_NOTIFICATION,
@@ -1362,6 +1377,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'filterMeterValuesOnSpecificChargingStations',
action: ServerAction.METER_VALUES,
@@ -1466,6 +1484,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'stopOrDeleteActiveTransactions',
action: ServerAction.CLEANUP_TRANSACTION,
@@ -1505,6 +1526,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'stopOrDeleteActiveTransactions',
action: ServerAction.CLEANUP_TRANSACTION,
@@ -1660,6 +1684,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'clearChargingStationConnectorRuntimeData',
action: ServerAction.START_TRANSACTION, user: user,
@@ -1851,6 +1878,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: headers.tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.BOOT_NOTIFICATION,
module: MODULE_NAME, method: 'checkExistingChargingStation',
@@ -2037,6 +2067,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'bypassStopTransaction',
action: ServerAction.STOP_TRANSACTION,
@@ -2069,6 +2102,9 @@ export default class OCPPService {
await Logging.logWarning({
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,
@@ -2094,6 +2130,9 @@ export default class OCPPService {
await Logging.logWarning({
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,
@@ -2117,6 +2156,9 @@ export default class OCPPService {
await Logging.logWarning({
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.METER_VALUES,
@@ -2179,6 +2221,9 @@ export default class OCPPService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.STOP_TRANSACTION,
module: MODULE_NAME, method: 'checkAndApplyLastConsumptionInStopTransaction',

MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -106,6 +106,9 @@ export default class OCPPUtils {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.ROAMING,
user: transaction.userID,
@@ -1144,6 +1147,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -1213,6 +1219,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -1281,6 +1290,9 @@ export default class OCPPUtils {
await Logging.logDebug({
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: 'applyTemplateOcppParametersToChargingStation',
@@ -1603,6 +1615,9 @@ export default class OCPPUtils {
await Logging.logDebug({
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',
@@ -2051,6 +2066,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -2114,6 +2132,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -2169,6 +2190,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -2181,6 +2205,9 @@ export default class OCPPUtils {
await Logging.logDebug({
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',
@@ -2192,6 +2219,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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',
@@ -2209,6 +2239,9 @@ export default class OCPPUtils {
await Logging.logWarning({
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/ocpp/validation/OCPPValidation.ts
src/server/ocpp/validation/OCPPValidation.ts
@@ -99,6 +99,9 @@ export default class OCPPValidation extends SchemaValidator {
await Logging.logWarning({
tenantID: tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'validateMeterValues',
action: ServerAction.METER_VALUES,
@@ -113,6 +116,9 @@ export default class OCPPValidation extends SchemaValidator {
await Logging.logWarning({
tenantID: tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'validateMeterValues',
action: ServerAction.METER_VALUES,
@@ -132,6 +138,9 @@ export default class OCPPValidation extends SchemaValidator {
await Logging.logWarning({
tenantID: tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'validateMeterValues',
action: ServerAction.METER_VALUES,
@@ -147,6 +156,9 @@ export default class OCPPValidation extends SchemaValidator {
await Logging.logWarning({
tenantID: tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
module: MODULE_NAME, method: 'validateMeterValues',
action: ServerAction.METER_VALUES,

MODIFY
src/server/oicp/oicp-services-impl/oicp-2.3.0/CPORemoteAuthorizationsEndpoint.ts
src/server/oicp/oicp-services-impl/oicp-2.3.0/CPORemoteAuthorizationsEndpoint.ts
@@ -110,6 +110,9 @@ export default class CPORemoteAuthorizationsEndpoint extends AbstractEndpoint {
await Logging.logDebug({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: ServerAction.OICP_AUTHORIZE_REMOTE_START,
message: `An existing remote authorization exists for Charging Station '${chargingStation.id}' and Connector ID ${connector.connectorId}`,

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -446,6 +446,9 @@ export default class ChargingStationService {
await Logging.logWarning({
tenantID: req.user.tenantID,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
action: action,
user: req.user,
@@ -1500,6 +1503,9 @@ export default class ChargingStationService {
await Logging.logWarning({
tenantID: tenant.id,
siteID: chargingStation.siteID,
+ siteAreaID: chargingStation.siteAreaID,
+ companyID: chargingStation.companyID,
+ chargeBoxID: chargingStation.id,
source: chargingStation.id,
user: user,
action: action,

Adding additional IDs for logWarning