From 132050c71bccb7d10d30f7f8bafcd5a84df73144 Mon Sep 17 00:00:00 2001 From: Bruno Thomas Date: Mon, 9 Sep 2024 13:20:53 +0000 Subject: [PATCH] chore: reformat log when looping on digesters & info -> debug Co-authored-by: Maxime Vanza Lutonda --- .../indexing/elasticsearch/SourceExtractor.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/datashare-index/src/main/java/org/icij/datashare/text/indexing/elasticsearch/SourceExtractor.java b/datashare-index/src/main/java/org/icij/datashare/text/indexing/elasticsearch/SourceExtractor.java index ea1ba0136..ace431077 100644 --- a/datashare-index/src/main/java/org/icij/datashare/text/indexing/elasticsearch/SourceExtractor.java +++ b/datashare-index/src/main/java/org/icij/datashare/text/indexing/elasticsearch/SourceExtractor.java @@ -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()); }