Skip to content

Commit

Permalink
0002724: Eliminate Repeated Stack trace logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichalek committed Aug 12, 2016
1 parent a5ce742 commit b8cbd6c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package org.jumpmind.symmetric.web;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletException;
Expand All @@ -33,9 +32,7 @@
import org.jumpmind.symmetric.service.INodeCommunicationService;
import org.jumpmind.symmetric.service.INodeService;
import org.jumpmind.symmetric.service.IParameterService;
import org.jumpmind.symmetric.service.impl.NodeCommunicationService;
import org.jumpmind.symmetric.statistic.IStatisticManager;
import org.jumpmind.util.LogSuppressor;
import org.springframework.util.StringUtils;

public class PushStatusUriHandler extends AbstractUriHandler {
Expand All @@ -47,8 +44,6 @@ public class PushStatusUriHandler extends AbstractUriHandler {
private INodeService nodeService;

private INodeCommunicationService nodeCommunicationService;

private LogSuppressor logSupressor = new LogSuppressor(log);

public PushStatusUriHandler(IParameterService parameterService, IDataLoaderService dataLoaderService,
IStatisticManager statisticManager, INodeService nodeService, INodeCommunicationService nodeCommunicationService,
Expand All @@ -75,7 +70,7 @@ public void handle(HttpServletRequest req, HttpServletResponse res) throws IOExc
System.out.println("Batch counts pushed: " + queuesToBatchCounts);
} catch (Exception ex) {
String msg = "Failed to parse batchToSendCountParam [" + batchToSendCountParam + "] " + req;
logSupressor.logWarn(msg+ex.toString(), msg, ex);
log.warn(msg, ex);
res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Couldn't parse batch_to_send_count.");
}
}
Expand Down

0 comments on commit b8cbd6c

Please sign in to comment.