Fix LoggingApplicationListener
- If `logging.config` is set and could open/read the resource then, return. - Currently, it logs warning though the resource is successfully read.
This commit is contained in:
parent
51196e01d5
commit
341412d5b5
|
|
@ -185,10 +185,9 @@ public class LoggingApplicationListener implements SmartApplicationListener {
|
||||||
system.initialize(value);
|
system.initialize(value);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
// Swallow exception and continue
|
this.logger.warn("Logging environment value '" + value
|
||||||
|
+ "' cannot be opened and will be ignored");
|
||||||
}
|
}
|
||||||
this.logger.warn("Logging environment value '" + value
|
|
||||||
+ "' cannot be opened and will be ignored");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue