Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10095

Surface latest content package extractor error as an exception

    XMLWordPrintableJSON

Details

    Description

      The ContentPackageExtractor should report its progress in the logs. This will allow to pin point exactly which path is the root cause of import problems.

      FileVault allows to plug a ProgressTrackerListener for that purpose.

      We'd need to add set a progress tracker listener instance on the ImportOption here and have that tracker log progress.

      To avoid flooding the logs, we may keep standard messages at debug level but keep error messages at ERROR levels.

      ImportOptions opts = new ImportOptions();
              opts.setListener(new ProgressTrackerListener() {
                  @Override
                  public void onMessage(Mode mode, String s, String s1) {
                      log.debug(...);
                  }
      
                  @Override
                  public void onError(Mode mode, String s, Exception e) {
                      log.error(...);
                  }
              });
      

      Attachments

        Issue Links

          Activity

            People

              marett Timothee Maret
              marett Timothee Maret
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: