You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2021/06/22 19:41:26 UTC

[sling-org-apache-sling-distribution-journal] branch master updated: SLING-10527 - Log imported instead of importing package (#73)

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 5746ef2  SLING-10527 - Log imported instead of importing package (#73)
5746ef2 is described below

commit 5746ef2ae6a3d729b7e3b3fef580d8e0cbb9e8ef
Author: Timothee Maret <tm...@apache.org>
AuthorDate: Tue Jun 22 21:41:17 2021 +0200

    SLING-10527 - Log imported instead of importing package (#73)
---
 .../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 b46d792..aa7b425 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
@@ -149,7 +149,7 @@ public class BookKeeper implements Closeable {
      * once, thanks to the order in which the content updates are applied.
      */
     public void importPackage(PackageMessage pkgMsg, long offset, long createdTime) throws DistributionException {
-        log.info("Importing distribution package {} at offset={}", pkgMsg, offset);
+        log.debug("Importing distribution package {} at offset={}", pkgMsg, offset);
         addPackageMDC(pkgMsg);
         try (Timer.Context context = distributionMetricsService.getImportedPackageDuration().time();
                 ResourceResolver importerResolver = getServiceResolver(SUBSERVICE_IMPORTER)) {
@@ -169,6 +169,7 @@ public class BookKeeper implements Closeable {
              
             Event event = new ImportedEvent(pkgMsg, config.getSubAgentName()).toEvent();
             eventAdmin.postEvent(event);
+            log.info("Imported distribution package {} at offset={}", pkgMsg, offset);
         } catch (DistributionException | LoginException | IOException | RuntimeException | ImportPostProcessException e) {
             failure(pkgMsg, offset, e);
         } finally {