Forced sync of logs
MODIFY
src/server/ocpp/json/JsonCentralSystemServer.ts
src/server/ocpp/json/JsonCentralSystemServer.ts
@@ -522,14 +522,14 @@ export default class JsonCentralSystemServer extends CentralSystemServer {
const message = `${validConnections.length} ${type} valid WS Connection pinged (${invalidConnections.length} invalid)`;
this.isDebug() && Logging.logConsoleDebug(message);
if (invalidConnections.length) {
- void Logging.logError({
+ await Logging.logError({
tenantID: Constants.DEFAULT_TENANT,
module: MODULE_NAME, method: 'checkAndCleanupWebSocket',
action: ServerAction.WS_CONNECTION_PINGED,
message, detailedMessages: { validConnections, invalidConnections }
});
} else {
- void Logging.logInfo({
+ await Logging.logInfo({
tenantID: Constants.DEFAULT_TENANT,
module: MODULE_NAME, method: 'checkAndCleanupWebSocket',
action: ServerAction.WS_CONNECTION_PINGED,

Forced sync of logs