Skip to content

Commit

Permalink
Changing Log level to info for tracking form usage and successfull su…
Browse files Browse the repository at this point in the history
…bmission (#2714)

* Changing Log level to info for tracking form usage and successfull submission
---------
Co-authored-by: Subodh Jha <subodhj@subodhs-laptop.corp.adobe.com>
  • Loading branch information
subodh2711 committed Apr 9, 2024
1 parent 34ee437 commit 6f47413
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public boolean forwardFormData(JSONObject formData, String endPointUrl) {
try {
String response = client.execute(post, new BasicResponseHandler());
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)
Expand All @@ -85,7 +86,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)
Expand Down

0 comments on commit 6f47413

Please sign in to comment.