Skip to content

Commit

Permalink
Log CSS exception details
Browse files Browse the repository at this point in the history
In XWikiWikiModel, if parsing CSS exception occurs include the exception in SLF4J call to get the full stack trace.
This should help investigation of [XWIKI-20546](https://jira.xwiki.org/browse/XWIKI-20546) issue.
  • Loading branch information
amottier committed Sep 26, 2024
1 parent 89ba9ea commit 2b5f849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private String getImageDimension(String dimension, Map<String, String> imagePara
value = sd.getPropertyValue(dimension);
} catch (Exception e) {
// Ignore the style parameter but log a warning to let the user know.
this.logger.warn("Failed to parse CSS style [{}]", style);
this.logger.warn("Failed to parse CSS style [{}]", style, e);
}
}
if (StringUtils.isBlank(value)) {
Expand Down

0 comments on commit 2b5f849

Please sign in to comment.