Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@
item.onLoad(parent, name);
return item;
} catch (Exception e) {
LOGGER.warning(() -> "could not load " + subdir + " due to " + e);
LOGGER.log(Level.FINE, null, e);
if (e instanceof FileNotFoundException && !LOGGER.isLoggable(Level.FINE)) {
// commonplace error from missing config.xml, avoid log spam unless FINE is enabled anyway
LOGGER.warning(() -> "could not load " + subdir + " due to " + e);
} else {
LOGGER.log(Level.WARNING, "could not load " + subdir, e);

Check warning on line 98 in src/main/java/com/cloudbees/hudson/plugins/folder/ChildLoader.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 94-98 are not covered by tests
}
return null;
}
}
Expand Down