[ https://issues.apache.org/jira/browse/SLING-10097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothee Maret resolved SLING-10097. ------------------------------------ Resolution: Fixed > Surface latest importer error as an exception > --------------------------------------------- > > Key: SLING-10097 > URL: https://issues.apache.org/jira/browse/SLING-10097 > Project: Sling > Issue Type: Improvement > Components: Content Distribution > Reporter: Timothee Maret > Assignee: Timothee Maret > Priority: Major > Fix For: Content Distribution Core 0.4.8 > > Time Spent: 10m > Remaining Estimate: 0h > > The > [FileVaultContentSerializer|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/b80cd8f3bae6b7875387ee7caaea271b7e9baec6/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/FileVaultContentSerializer.java] > 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|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/b80cd8f3bae6b7875387ee7caaea271b7e9baec6/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/FileVaultContentSerializer.java#L135] > 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. > {code} > 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(...); > } > }); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)