garydgregory commented on a change in pull request #742:
URL: https://github.com/apache/logging-log4j2/pull/742#discussion_r801556257
##########
File path:
log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
##########
@@ -435,17 +452,18 @@ private Environment(final PropertySource propertySource) {
// Access to System Properties is restricted so just skip it.
}
sources.add(propertySource);
- for (final ClassLoader classLoader :
LoaderUtil.getClassLoaders()) {
- try {
- for (final PropertySource source :
ServiceLoader.load(PropertySource.class, classLoader)) {
- sources.add(source);
- }
- } catch (final Throwable ex) {
- /* Don't log anything to the console.
It may not be a problem that a PropertySource
- * isn't accessible.
- */
- }
- }
+ for (final ClassLoader classLoader : LoaderUtil.getClassLoaders())
{
Review comment:
Never tabs, only spaces in this project; -)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]