Skip to content

Commit

Permalink
fix wrong log classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Mariotti committed Feb 26, 2025
1 parent 53ac7db commit df49217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ public Future<List<Card>> getAllCardsBySectionSimple(Section section, Integer pa
fetchAllCardsBySection(section, page, user)
.compose(this::setMetadataCards)
.onFailure(fail -> {
log.error("[Magneto@%s::getAllCardsByBoard] Failed to get cards", this.getClass().getSimpleName(),
log.error("[Magneto@%s::getAllCardsBySectionSimple] Failed to get section cards", this.getClass().getSimpleName(),
fail.getMessage());
promise.fail(fail.getMessage());
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private Future<XMLSlideShow> createSectionLayoutSlideObjects(Board board, UserIn
ppt.createSlide().importContent(apacheSlide);
} catch (Exception e) {
String message = String.format(
"[Magneto@%s::createFreeLayoutSlideObjects] Failed to create slide for card %s: %s",
"[Magneto@%s::createSectionLayoutSlideObjects] Failed to create slide for card %s: %s",
this.getClass().getSimpleName(), card.getId(), e.getMessage());
log.error(message);
}
Expand All @@ -229,7 +229,7 @@ private Future<XMLSlideShow> createSectionLayoutSlideObjects(Board board, UserIn
})
.onFailure(err -> {
String message = String.format(
"[Magneto@%s::createFreeLayoutSlideObjects] Failed to create slides: %s",
"[Magneto@%s::createSectionLayoutSlideObjects] Failed to create slides: %s",
this.getClass().getSimpleName(), err.getMessage());
log.error(message);
});
Expand Down

0 comments on commit df49217

Please sign in to comment.