Avoid printing logging messages twice

This commit is contained in:
Andrey Breslav
2012-11-13 14:46:34 +04:00
parent 9592bfd62f
commit 8e2c9610d5
@@ -54,8 +54,10 @@ public class PrintingMessageCollector implements MessageCollector {
} }
errStream.println(text); errStream.println(text);
} }
else {
groupedMessages.put(location.getPath(), text); groupedMessages.put(location.getPath(), text);
} }
}
public void printToErrStream() { public void printToErrStream() {
if (!groupedMessages.isEmpty()) { if (!groupedMessages.isEmpty()) {