to hopefully finally find and fix bug 736, added the stack trace to the INFO log for adding a regatta leaderboard

This commit is contained in:
Axel Uhl committed 2012-06-07 23:31:48 +02:00
1 parent f67aaa19eb
commit a2bae85b61
2 files changed
+10 -4

No files matched your search

@@ -1,8 +1,11 @@
package com.sap.sailing.server.impl;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Serializable;
import java.net.MalformedURLException;
import java.net.SocketException;
@@ -268,6 +271,9 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
public RegattaLeaderboard addRegattaLeaderboard(RegattaIdentifier regattaIdentifier, int[] discardThresholds) {
Regatta regatta = getRegatta(regattaIdentifier);
logger.info("adding regatta leaderboard for regatta "+regatta==null?"null":regatta.getName()+" to "+this);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
new Exception().printStackTrace(new PrintWriter(new OutputStreamWriter(bos)));
logger.info(" at "+new String(bos.toByteArray()));
RegattaLeaderboard result = null;
if (regatta != null) {
result = new RegattaLeaderboardImpl(regatta, new ScoreCorrectionImpl(), new ResultDiscardingRuleImpl(