projects
/
sonitus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve logging.
[sonitus.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sonitus
/
data
/
Pipeline.java
diff --git
a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
index
063a0bc
..
ab6500e
100644
(file)
--- a/
src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
+++ b/
src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
@@
-400,11
+400,11
@@
public class Pipeline implements Iterable<ControlledComponent> {
try {
final byte[] buffer;
try {
try {
final byte[] buffer;
try {
- logger.finest(String.format("Getting %d bytes from %s...", 4096, source));
+ logger.finest(String.format("Getting %d bytes from %s...", 4096, source
.name()
));
buffer = source.get(4096);
buffer = source.get(4096);
- logger.finest(String.format("Got %d bytes from %s.", buffer.length, source));
+ logger.finest(String.format("Got %d bytes from %s.", buffer.length, source
.name()
));
} catch (IOException ioe1) {
} catch (IOException ioe1) {
- throw new IOException(String.format("I/O error while reading from %s.", source), ioe1);
+ throw new IOException(String.format("I/O error while reading from %s.", source
.name()
), ioe1);
}
List<Future<Void>> futures = executorService.invokeAll(FluentIterable.from(sinks).transform(new Function<Sink, Callable<Void>>() {
}
List<Future<Void>> futures = executorService.invokeAll(FluentIterable.from(sinks).transform(new Function<Sink, Callable<Void>>() {
@@
-415,11
+415,11
@@
public class Pipeline implements Iterable<ControlledComponent> {
@Override
public Void call() throws Exception {
try {
@Override
public Void call() throws Exception {
try {
- logger.finest(String.format("Sending %d bytes to %s.", buffer.length, sink));
+ logger.finest(String.format("Sending %d bytes to %s.", buffer.length, sink
.name()
));
sink.process(buffer);
sink.process(buffer);
- logger.finest(String.format("Sent %d bytes to %s.", buffer.length, sink));
+ logger.finest(String.format("Sent %d bytes to %s.", buffer.length, sink
.name()
));
} catch (IOException ioe1) {
} catch (IOException ioe1) {
- throw new IOException(String.format("I/O error while writing to %s", sink), ioe1);
+ throw new IOException(String.format("I/O error while writing to %s", sink
.name()
), ioe1);
}
return null;
}
}
return null;
}