Skip to content

Commit bcbc1ec

Browse files
committed
Logging polishing
1 parent 25a45b0 commit bcbc1ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/util/OperationsLogging.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ public static <T extends Publisher<U>, U> Function<T, T> log(String message) {
4444

4545
AtomicLong startTimeHolder = new AtomicLong();
4646

47-
Consumer<Subscription> start = s -> {
47+
Consumer<Subscription> start = subscription -> {
4848
startTimeHolder.set(System.currentTimeMillis());
4949
LOGGER.debug("START {}", message);
5050
};
5151

52-
Consumer<SignalType> finish = s -> {
52+
Consumer<SignalType> finish = signalType -> {
5353
String elapsed = TimeUtils.asTime(System.currentTimeMillis() - startTimeHolder.get());
54-
LOGGER.debug("FINISH {} ({})", message, elapsed);
54+
LOGGER.debug("FINISH {} ({}/{})", message, signalType, elapsed);
5555
};
5656

5757
return f -> {

0 commit comments

Comments
 (0)