How to disable the following debug logs in spring boot? These logs appear whenever a health check is requested in the application.
I tried to set the logger level for the information for these packages "org.springframework.jndi" and "javax.naming" in our log configuration file, but the above lines still appear whenever a health check is requested.
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@756a5bed
[DEBUG] jndi - Looking up name="comp/env/endpoints.enabled"
[DEBUG] jndi - Trying thread context classloader
[DEBUG] jndi - Looking up name="env/endpoints.enabled"
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@6a85ff9f
[DEBUG] jndi - Looking up name="endpoints.enabled"
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@293101e3
[DEBUG] jndi - Looking up name="comp/env/endpoints.health.sensitive"
[DEBUG] jndi - Trying thread context classloader
[DEBUG] jndi - Looking up name="env/endpoints.health.sensitive"
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@235a3b05
[DEBUG] jndi - Looking up name="endpoints.health.sensitive"
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@439cc794
[DEBUG] jndi - Looking up name="comp/env/endpoints.health.sensitive"
[DEBUG] jndi - Trying thread context classloader
[DEBUG] jndi - Looking up name="env/endpoints.health.sensitive"
[DEBUG] jndi - InitialContextFactory.getInitialContext()
[DEBUG] jndi - Created initial context delegate for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@221fa466
[DEBUG] jndi - Looking up name="endpoints.health.sensitive"
source
share