Removed useless logs
MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -93,7 +93,6 @@ export default class OCPPService {
await this.notifyBootNotification(tenant, chargingStation);
// Request OCPP configuration
this.requestOCPPConfigurationAfterBootNotification(tenant, chargingStation, templateUpdateResult, heartbeatIntervalSecs);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -133,7 +132,6 @@ export default class OCPPService {
};
// Save Heart Beat
await OCPPStorage.saveHeartbeat(tenant, heartbeat);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -248,7 +246,6 @@ export default class OCPPService {
// Yes: Trigger Smart Charging
await this.triggerSmartCharging(tenant, chargingStation);
}
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -279,7 +276,6 @@ export default class OCPPService {
this.enrichAuthorize(user, chargingStation, headers, authorize);
// Save
await OCPPStorage.saveAuthorize(tenant, authorize);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -317,7 +313,6 @@ export default class OCPPService {
this.enrichOCPPRequest(chargingStation, diagnosticsStatusNotification);
// Save it
await OCPPStorage.saveDiagnosticsStatusNotification(tenant, diagnosticsStatusNotification);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -347,7 +342,6 @@ export default class OCPPService {
await ChargingStationStorage.saveChargingStationFirmwareStatus(tenant, chargingStation.id, firmwareStatusNotification.status);
// Save it
await OCPPStorage.saveFirmwareStatusNotification(tenant, firmwareStatusNotification);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -400,7 +394,6 @@ export default class OCPPService {
// Save
await ChargingStationStorage.saveChargingStation(tenant, chargingStation);
await this.notifyStartTransaction(tenant, newTransaction, chargingStation, user);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -417,7 +410,6 @@ export default class OCPPService {
}
};
} catch (error) {
- // Log
this.addChargingStationToException(error, headers.chargeBoxIdentity);
await Logging.logActionExceptionMessage(headers.tenantID, ServerAction.OCPP_START_TRANSACTION, error, { startTransaction });
// Invalid
@@ -440,7 +432,6 @@ export default class OCPPService {
this.enrichOCPPRequest(chargingStation, dataTransfer);
// Save it
await OCPPStorage.saveDataTransfer(tenant, dataTransfer);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -674,7 +665,6 @@ export default class OCPPService {
chargingStation.connectors, chargingStation.backupConnectors);
// Process Smart Charging
await this.processSmartChargingStatusNotification(tenant, chargingStation, connector);
- // Log
await Logging.logInfo({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -937,7 +927,6 @@ export default class OCPPService {
if (connector.status !== ChargePointStatus.AVAILABLE &&
connector.status !== ChargePointStatus.FINISHING && // TODO: To remove after fix of ABB bug having Finishing status with an Error Code to avoid spamming Admins
connector.errorCode !== ChargePointErrorCode.NO_ERROR) {
- // Log
await Logging.logError({
tenantID: tenant.id,
...LoggingHelper.getChargingStationProperties(chargingStation),
@@ -1138,7 +1127,6 @@ export default class OCPPService {
// Set Transaction ID
foundConnector.currentTransactionID = transaction.id;
foundConnector.currentUserID = transaction.userID;
- // Log
const instantPower = Utils.truncTo(Utils.createDecimal(foundConnector.currentInstantWatts).div(1000).toNumber(), 3);
const totalConsumption = Utils.truncTo(Utils.createDecimal(foundConnector.currentTotalConsumptionWh).div(1000).toNumber(), 3);
await Logging.logInfo({

Removed useless logs