Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

log client connection aborted error log #582

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.topcoder.direct.services.view.action.contest.launch.AggregateDataModel;
import com.topcoder.direct.services.view.ajax.processors.DefaultAJAXResultPreProcessor;
import com.topcoder.direct.services.view.ajax.serializers.JSONDataSerializer;
import org.apache.log4j.Logger;

/**
* <p>
Expand Down Expand Up @@ -185,6 +186,8 @@ public class CustomFormatAJAXResult implements Result {
*/
private boolean enabledGzip = false;

private Logger logger = Logger.getLogger(CustomFormatAJAXResult.class);

/**
* <p>
* Default constructor.
Expand Down Expand Up @@ -310,6 +313,7 @@ private static void writeDataAndClose(InputStream in, OutputStream out) throws I
out.flush();
} catch (IOException e) {
// The client side has aborted or closed connection
logger.error("The client side has aborted or closed connection", e);
} finally {
// close the input stream
closeStream(in);
Expand Down