From 34143658ae3c5157af1e145321618b1c244f5410 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 6 Jun 2013 06:38:35 +0200 Subject: [PATCH] Improve logging. --- src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java b/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java index 565ff3e..645a41d 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java +++ b/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java @@ -105,7 +105,7 @@ public class MultiSource extends AbstractFilter { this.source.notifyAll(); } metadataUpdated(source.metadata()); - logger.info(String.format("Next Source set: %s", source)); + logger.info(String.format("Next Source set: %s", source.name())); } } @@ -150,6 +150,7 @@ public class MultiSource extends AbstractFilter { try { return source.get().get(bufferSize); } catch (EOFException eofe1) { + logger.info(String.format("Got EOF from %s.", source.get().name())); waitForNewSource(); } finally { synchronized (source) { -- 2.7.4