Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Content Distribution Journal Core 0.1.6
-
None
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
- is related to
-
SLING-10097 Surface latest importer error as an exception
- Closed
- links to
(3 links to)