From be7928785b02bfa63e557a035be8fb3fa80b86f4 Mon Sep 17 00:00:00 2001 From: akila94 Date: Mon, 22 Jan 2024 11:48:30 +0530 Subject: [PATCH] Add warn log --- .../certificatevalidation/CertificateVerificationManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/CertificateVerificationManager.java b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/CertificateVerificationManager.java index 100767e1ef..ceca801109 100644 --- a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/CertificateVerificationManager.java +++ b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/CertificateVerificationManager.java @@ -61,6 +61,8 @@ public CertificateVerificationManager(Integer cacheAllocatedSize, Integer cacheD && cacheAllocatedSize < Constants.CACHE_MAX_ALLOCATED_SIZE) { this.cacheSize = cacheAllocatedSize; } + log.warn("The cache size is out of range. Hence, using the default cache size value of " + + Constants.CACHE_DEFAULT_ALLOCATED_SIZE + "."); if (cacheDelayMins != null && cacheDelayMins > Constants.CACHE_MIN_DELAY_MINS && cacheDelayMins < Constants.CACHE_MAX_DELAY_MINS) { this.cacheDelayMins = cacheDelayMins;