Skip to content

Commit

Permalink
Merge pull request #3933 from sghill/JENKINS-56494
Browse files Browse the repository at this point in the history
Update ExtensionList#load to not log unnecessary stacktrace
  • Loading branch information
daniel-beck committed Apr 8, 2019
2 parents 58dfce4 + 2ca47e9 commit 108cf87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/hudson/ExtensionList.java
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ private static final class Lock {}
* Loads all the extensions.
*/
protected List<ExtensionComponent<T>> load() {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.log(Level.FINE,"Loading ExtensionList: "+extensionType, new Throwable());
LOGGER.fine(() -> String.format("Loading ExtensionList '%s'", extensionType.getName()));
if (LOGGER.isLoggable(Level.FINER)) {
LOGGER.log(Level.FINER, String.format("Loading ExtensionList '%s' from", extensionType.getName()), new Throwable("Only present for stacktrace information"));
}

return jenkins.getPluginManager().getPluginStrategy().findComponents(extensionType, hudson);
}
Expand Down

0 comments on commit 108cf87

Please sign in to comment.