From: David ‘Bombe’ Roden Date: Mon, 6 Jan 2014 12:14:47 +0000 (+0100) Subject: Squelch duplicate log lines. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a488ccc7436f131efaf51e81f003f9a4862d1a74;p=xudocci.git Squelch duplicate log lines. --- diff --git a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java index fc1a48f..87678b5 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -76,7 +76,7 @@ public class CommandReader extends AbstractExecutionThreadService { */ public CommandReader(Core core, Reader reader, Writer writer, Collection failedDownloads) { this.reader = new BufferedReader(reader); - this.writer = writer; + this.writer = new DuplicateLineSuppressingWriter(writer); this.failedDownloads = failedDownloads; /* initialize commands. */