Skip to content

Commit

Permalink
[FIXED JENKINS-34188] suppress log entry, unless level FINE is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Nov 26, 2016
1 parent 528443a commit db09e6d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -212,8 +212,10 @@ public Map<Object, Object> getChoices(Map<Object, Object> parameters) {
visibleItemCount = map.size();
return map;
}
LOGGER.warning(String.format("Script parameter with name '%s' is not an instance of java.util.Map. The "
+ "parameter value is %s", getName(), value));
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine(String.format("Script parameter with name '%s' is not an instance of java.util.Map. The "
+ "parameter value is %s", getName(), value));
}
return Collections.emptyMap();
}

Expand Down

0 comments on commit db09e6d

Please sign in to comment.