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

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

commit 93d61924e909baff55214fe121c5a2c99c420a87
Author: Christian Schneider <[email protected]>
AuthorDate: Thu Jun 29 11:20:58 2023 +0200

    SLING-11914 - Improve logging
---
 .../org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
index 92ae9fd..9f6137c 100644
--- 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
+++ 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
@@ -383,7 +383,8 @@ public class BookKeeper {
         try (ResourceResolver resolver = 
getServiceResolver(SUBSERVICE_BOOKKEEPER)) {
             long currentOffset = loadOffset();
             if (currentOffset == -1) {
-                log.info("Storing initial offset. key={}, offset={}", 
KEY_OFFSET, offset);
+                log.info("Storing initial offset. packageNodeName={}, 
subagentName={}, offset={}", 
+                        config.getPackageNodeName(), config.getSubAgentName(), 
offset);
                 storeOffset(resolver, offset);
                 resolver.commit();
             }

Reply via email to