This is an automated email from the ASF dual-hosted git repository.

tmaret pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git


The following commit(s) were added to refs/heads/master by this push:
     new dc8e24e  SLING-8846 - Successfully handling clear command should be 
logged
dc8e24e is described below

commit dc8e24e5cdd45c72865d14b70e0977cd1f43e3af
Author: tmaret <[email protected]>
AuthorDate: Thu Nov 14 17:14:22 2019 +0100

    SLING-8846 - Successfully handling clear command should be logged
---
 .../distribution/journal/impl/subscriber/DistributionSubscriber.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
 
b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
index 7f18cb4..fcefc7f 100644
--- 
a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
+++ 
b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
@@ -732,6 +732,7 @@ public class DistributionSubscriber implements 
DistributionAgent {
             // as the max between the provided offset
             // and the current clearOffset
             clearOffset.accumulateAndGet(offset, Math::max);
+            LOG.info("Handled clear command for offset {}", offset);
         } else {
             LOG.warn("Unexpected ClearCommand for non editable subscriber");
         }

Reply via email to