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.
pull/1286/head
Ilayaperumal Gopinathan 10 years ago committed by Dave Syer
parent 51196e01d5
commit 341412d5b5

@ -185,11 +185,10 @@ 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 this.logger.warn("Logging environment value '" + value
+ "' cannot be opened and will be ignored"); + "' cannot be opened and will be ignored");
} }
}
else { else {
system.initialize(); system.initialize();

Loading…
Cancel
Save