diff --git a/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/internal/wiki/XWikiWikiModel.java b/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/internal/wiki/XWikiWikiModel.java index 6b3d51edfe35..464c57d43846 100644 --- a/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/internal/wiki/XWikiWikiModel.java +++ b/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/internal/wiki/XWikiWikiModel.java @@ -33,6 +33,7 @@ import javax.inject.Singleton; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.message.BasicNameValuePair; @@ -312,7 +313,8 @@ private String getImageDimension(String dimension, Map 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, e); + this.logger.warn("Failed to parse CSS style [{}]. Root cause is: [{}]", style, + ExceptionUtils.getRootCauseMessage(e)); } } if (StringUtils.isBlank(value)) {