Limit logs in prod
MODIFY
src/notification/remote-push-notification/RemotePushNotificationTask.ts
src/notification/remote-push-notification/RemotePushNotificationTask.ts
@@ -451,7 +451,7 @@ export default class RemotePushNotificationTask implements NotificationTask {
return Promise.resolve();
}
if (!user || !user.mobileToken || user.mobileToken.length === 0) {
- await Logging.logWarning({
+ await Logging.logDebug({
tenantID: tenant.id,
source: (data && Utils.objectHasProperty(data, 'chargeBoxID') ? data['chargeBoxID'] : null),
action: ServerAction.REMOTE_PUSH_NOTIFICATION,

MODIFY
src/utils/Constants.ts
src/utils/Constants.ts
@@ -12,8 +12,8 @@ export default class Constants {
public static readonly CSV_SEPARATOR = ',';
public static readonly CR_LF = '\r\n';
- public static readonly PERF_MAX_DATA_VOLUME_KB = 128;
- public static readonly PERF_MAX_RESPONSE_TIME_MILLIS = 500;
+ public static readonly PERF_MAX_DATA_VOLUME_KB = 512;
+ public static readonly PERF_MAX_RESPONSE_TIME_MILLIS = 1000;
public static readonly AXIOS_DEFAULT_TIMEOUT = 60000;

Limit logs in prod