added missing close() to print writer for debug output for fixing bug 736

This commit is contained in:
Axel Uhl committed 2012-06-07 23:54:55 +02:00
1 parent 185eac9f24
commit 43501e3a2a
2 files changed
+7 -5

No files matched your search

@@ -272,7 +272,9 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
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)));
final PrintWriter pw = new PrintWriter(new OutputStreamWriter(bos));
new Exception().printStackTrace(pw);
pw.close();
logger.info(" at "+new String(bos.toByteArray()));
RegattaLeaderboard result = null;
if (regatta != null) {