Skip to content

Commit

Permalink
chore: reformat log when looping on digesters & info -> debug
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Vanza Lutonda <[email protected]>
  • Loading branch information
bamthomas and mvanzalu committed Sep 9, 2024
1 parent d8b5687 commit 132050c
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,13 @@ public InputStream getEmbeddedSource(final Project project, final Document docum
}
return inputStream;
} catch (ContentNotFoundException | SAXException | TikaException | IOException ex) {
LOGGER.info(String.format("Extract attempt %s/%s for embedded document failed:", ++i, digesters.size()));
LOGGER.info(String.format("\t├── exception: %s", ex.getClass().getSimpleName()));
LOGGER.info(String.format("\t├── algorithm: %s", algorithm));
LOGGER.info(String.format("\t├── digester: %s", digester.getClass().getSimpleName()));
LOGGER.info(String.format("\t├── id: %s", document.getId()));
LOGGER.info(String.format("\t├── routing: %s", document.getRootDocument()));
LOGGER.info(String.format("\t└── project: %s", document.getProject().getName()));
LOGGER.debug("Extract attempt {}/{} for embedded document {}/{} failed (algorithm={}, digester={}, project={})",
++i, digesters.size(),
document.getId(), document.getRootDocument(),
algorithm, digester.getClass().getSimpleName(),
document.getProject(), ex);
}
}

throw new ContentNotFoundException(document.getRootDocument(), document.getId());
}

Expand Down

0 comments on commit 132050c

Please sign in to comment.