Reduce ConfigFileApplicationListener logs

Previously, all attempts to log a configuration file were logged at DEBUG
level which lead to a lot of noise as Spring Boot looks in many places by
default.

We now only log the files that are effectively found at DEBUG level and
all failed attempts at TRACE level.

Closes gh-3129
This commit is contained in:
Stephane Nicoll
2015-07-06 18:05:36 +02:00
parent 067c7a295c
commit afd357f45a
2 changed files with 50 additions and 15 deletions

View File

@@ -185,6 +185,9 @@ No matter what you set in the environment, Spring Boot will always load
`application.properties` as described above. If YAML is used then files with the '`.yml`'
extension are also added to the list by default.
Spring Boot logs the configuration files that are loaded at `DEBUG` level and the
candidates it has not found at `TRACE` level.
See {sc-spring-boot}/context/config/ConfigFileApplicationListener.{sc-ext}[`ConfigFileApplicationListener`]
for more detail.