Skip to content

Commit

Permalink
Merge pull request #1954 from scireum/SIRI-939_kba_sync_log
Browse files Browse the repository at this point in the history
Properly logs errors at KB sync task
  • Loading branch information
mkeckmkeck authored Mar 15, 2024
2 parents 79f3367 + 5fbc690 commit 02a7925
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,8 @@ private void updateArticle(String templatePath, String syncId) {
.forEach(crossReference -> entry.getRelatesTo().modify().add(crossReference));

elastic.update(entry);
} catch (Exception e) {
Exceptions.handle()
.to(KnowledgeBase.LOG)
.error(e)
.withSystemErrorMessage("Failed to load article %s: %s (%s)", templatePath)
.handle();
} catch (Exception exception) {
KnowledgeBase.LOG.SEVERE("Failed to load article %s, reason: %s", templatePath, exception.getMessage());
}
}

Expand Down

0 comments on commit 02a7925

Please sign in to comment.