Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jul 17, 2024
1 parent 055b915 commit d894acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jasper/component/Validate.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private void plugin(Ref ref, String tag, String origin, boolean stripOnError) {
// If a tag has no plugin, or the plugin is schemaless, plugin data is not allowed
if (ref.hasPlugin(tag)) {
if (logger.isDebugEnabled()) try {
logger.debug("{} Plugin data not allowed: {} {}", origin, tag, objectMapper.writeValueAsString(ref.getPlugin(tag)));
logger.debug("{} Plugin data not allowed: {} {}", origin, tag, plugin.isEmpty() ? null : objectMapper.writeValueAsString(plugin.get()));
} catch (JsonProcessingException e) {}
if (!stripOnError) throw new InvalidPluginException(tag);
ref.getPlugins().remove(tag);
Expand Down

0 comments on commit d894acd

Please sign in to comment.