From c1055510d5d2bb54660e43818e05f961271fb577 Mon Sep 17 00:00:00 2001 From: Subodh Jha Date: Mon, 8 Apr 2024 16:47:03 +0530 Subject: [PATCH 1/2] Changing Log level to info for tracking form usage and successfull submission --- .../cq/wcm/core/components/internal/form/FormHandlerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java index 01ce831ae8..c99010268e 100644 --- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java +++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java @@ -66,7 +66,7 @@ public boolean forwardFormData(JSONObject formData, String endPointUrl) { CHARSET))); try { String response = client.execute(post, new BasicResponseHandler()); - LOG.debug("POSTing form data to '{}' succeeded: response: {}", endPointUrl, response); + LOG.info("POSTing form data to '{}' succeeded: response: {}", endPointUrl, response); return true; } catch (IOException e) { // for all status codes != 2xx an HttpResponseException is thrown (http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/BasicResponseHandler.html) @@ -85,7 +85,7 @@ protected void activate(Config config) { if (socketTimeout < 0) { throw new IllegalArgumentException("Socket timeout value cannot be less than 0"); } - + RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(connectionTimeout) .setConnectionRequestTimeout(connectionTimeout) From 6d859bf3ea3650f592a6b231957b8d530667e738 Mon Sep 17 00:00:00 2001 From: Subodh Jha Date: Mon, 8 Apr 2024 19:42:01 +0530 Subject: [PATCH 2/2] Changing Log level to info for tracking form usage and successfull submission --- .../cq/wcm/core/components/internal/form/FormHandlerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java index c99010268e..54a99bce25 100644 --- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java +++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/form/FormHandlerImpl.java @@ -66,7 +66,8 @@ public boolean forwardFormData(JSONObject formData, String endPointUrl) { CHARSET))); try { String response = client.execute(post, new BasicResponseHandler()); - LOG.info("POSTing form data to '{}' succeeded: response: {}", endPointUrl, response); + LOG.debug("POSTing form data to '{}' succeeded: response: {}", endPointUrl, response); + LOG.info("POSTing form data succeeded through FormHandlerImpl"); return true; } catch (IOException e) { // for all status codes != 2xx an HttpResponseException is thrown (http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/BasicResponseHandler.html)