Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.1.6
-
None
-
mac,centos
Description
I recently upgrade logbook from version 1.1.3 to version 1.1.6 and a new issue raised when starting up my application. I used to include few properties files in my logbook.xml file, and one the the included files does not always exists depending upon the environment on which it is running.
<property scope="context" resource="application.properties" /> <property scope="context" file="config/application.properties" /> <property scope="context" file="config/application-dev.properties" />
The third file exists only locally in my development environment. In production it does not exists. Up to release 1.1.3, this was working perfectly, only a warning was logged at startup. But since I upgraded to version 1.1.6, this is now generating an error which prevent my application to start.
java.lang.IllegalStateException: Logback configuration error detected: ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find properties file [config/application-dev.properties]. at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:151) ... ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find properties file [config/application-dev.properties]. at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:151) ... 18 more Process finished with exit code 1
Is there a workaround for that?
Would it be possible to fix that or at least to add a new attribute telling to ignore when the file is not found?