mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Complete static final logger changes that were started in ec2f33f9
This commit completes the changes to consistently used static final
fields for Log instances that were started in ec2f33f9
. Specifically it:
- Removes this. when accessing logger fields that are now static
- Renames some fields from log to logger
- Makes some logger fields static
See gh-4784
This commit is contained in:
parent
150a6f0f5c
commit
27a81e1463
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -187,11 +187,11 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void logTrace(HttpServletRequest request, Map<String, Object> trace) {
|
private void logTrace(HttpServletRequest request, Map<String, Object> trace) {
|
||||||
if (this.logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
this.logger.trace("Processing request " + request.getMethod() + " "
|
logger.trace("Processing request " + request.getMethod() + " "
|
||||||
+ request.getRequestURI());
|
+ request.getRequestURI());
|
||||||
if (this.dumpRequests) {
|
if (this.dumpRequests) {
|
||||||
this.logger.trace("Headers: " + trace.get("headers"));
|
logger.trace("Headers: " + trace.get("headers"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -94,7 +94,8 @@ public class JacksonAutoConfiguration {
|
|||||||
DateTimeSerializer.class, JacksonJodaDateFormat.class })
|
DateTimeSerializer.class, JacksonJodaDateFormat.class })
|
||||||
static class JodaDateTimeJacksonConfiguration {
|
static class JodaDateTimeJacksonConfiguration {
|
||||||
|
|
||||||
private static final Log log = LogFactory.getLog(JodaDateTimeJacksonConfiguration.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(JodaDateTimeJacksonConfiguration.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private JacksonProperties jacksonProperties;
|
private JacksonProperties jacksonProperties;
|
||||||
@ -123,8 +124,8 @@ public class JacksonAutoConfiguration {
|
|||||||
.withZoneUTC());
|
.withZoneUTC());
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException ex) {
|
catch (IllegalArgumentException ex) {
|
||||||
if (this.log.isWarnEnabled()) {
|
if (logger.isWarnEnabled()) {
|
||||||
this.log.warn("spring.jackson.date-format could not be used to "
|
logger.warn("spring.jackson.date-format could not be used to "
|
||||||
+ "configure formatting of Joda's DateTime. You may want "
|
+ "configure formatting of Joda's DateTime. You may want "
|
||||||
+ "to configure spring.jackson.joda-date-time-format as "
|
+ "to configure spring.jackson.joda-date-time-format as "
|
||||||
+ "well.");
|
+ "well.");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -35,7 +35,8 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
*/
|
*/
|
||||||
class ArtemisEmbeddedConfigurationFactory {
|
class ArtemisEmbeddedConfigurationFactory {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(ArtemisEmbeddedConfigurationFactory.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(ArtemisEmbeddedConfigurationFactory.class);
|
||||||
|
|
||||||
private final ArtemisProperties.Embedded properties;
|
private final ArtemisProperties.Embedded properties;
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ class ArtemisEmbeddedConfigurationFactory {
|
|||||||
this.properties.generateTransportParameters());
|
this.properties.generateTransportParameters());
|
||||||
configuration.getAcceptorConfigurations().add(transportConfiguration);
|
configuration.getAcceptorConfigurations().add(transportConfiguration);
|
||||||
if (this.properties.isDefaultClusterPassword()) {
|
if (this.properties.isDefaultClusterPassword()) {
|
||||||
this.logger.debug("Using default Artemis cluster password: "
|
logger.debug("Using default Artemis cluster password: "
|
||||||
+ this.properties.getClusterPassword());
|
+ this.properties.getClusterPassword());
|
||||||
}
|
}
|
||||||
configuration.setClusterPassword(this.properties.getClusterPassword());
|
configuration.setClusterPassword(this.properties.getClusterPassword());
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -37,7 +37,8 @@ import org.springframework.boot.autoconfigure.jms.hornetq.HornetQProperties.Embe
|
|||||||
*/
|
*/
|
||||||
class HornetQEmbeddedConfigurationFactory {
|
class HornetQEmbeddedConfigurationFactory {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(HornetQEmbeddedConfigurationFactory.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(HornetQEmbeddedConfigurationFactory.class);
|
||||||
|
|
||||||
private final Embedded properties;
|
private final Embedded properties;
|
||||||
|
|
||||||
@ -69,7 +70,7 @@ class HornetQEmbeddedConfigurationFactory {
|
|||||||
|
|
||||||
// HORNETQ-1143
|
// HORNETQ-1143
|
||||||
if (this.properties.isDefaultClusterPassword()) {
|
if (this.properties.isDefaultClusterPassword()) {
|
||||||
this.logger.debug("Using default HornetQ cluster password: "
|
logger.debug("Using default HornetQ cluster password: "
|
||||||
+ this.properties.getClusterPassword());
|
+ this.properties.getClusterPassword());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -139,7 +139,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
|
|
||||||
public PropertiesLauncher() {
|
public PropertiesLauncher() {
|
||||||
if (!isDebug()) {
|
if (!isDebug()) {
|
||||||
this.logger.setLevel(Level.SEVERE);
|
logger.setLevel(Level.SEVERE);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.home = getHomeDirectory();
|
this.home = getHomeDirectory();
|
||||||
@ -183,7 +183,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
InputStream resource = getResource(config);
|
InputStream resource = getResource(config);
|
||||||
|
|
||||||
if (resource != null) {
|
if (resource != null) {
|
||||||
this.logger.info("Found: " + config);
|
logger.info("Found: " + config);
|
||||||
try {
|
try {
|
||||||
this.properties.load(resource);
|
this.properties.load(resource);
|
||||||
}
|
}
|
||||||
@ -201,7 +201,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
if (SystemPropertyUtils
|
if (SystemPropertyUtils
|
||||||
.resolvePlaceholders("${" + SET_SYSTEM_PROPERTIES + ":false}")
|
.resolvePlaceholders("${" + SET_SYSTEM_PROPERTIES + ":false}")
|
||||||
.equals("true")) {
|
.equals("true")) {
|
||||||
this.logger.info("Adding resolved properties to System properties");
|
logger.info("Adding resolved properties to System properties");
|
||||||
for (Object key : Collections.list(this.properties.propertyNames())) {
|
for (Object key : Collections.list(this.properties.propertyNames())) {
|
||||||
String value = this.properties.getProperty((String) key);
|
String value = this.properties.getProperty((String) key);
|
||||||
System.setProperty((String) key, value);
|
System.setProperty((String) key, value);
|
||||||
@ -209,7 +209,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.logger.info("Not found: " + config);
|
logger.info("Not found: " + config);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -244,13 +244,13 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
config = config.substring(1);
|
config = config.substring(1);
|
||||||
}
|
}
|
||||||
config = "/" + config;
|
config = "/" + config;
|
||||||
this.logger.fine("Trying classpath: " + config);
|
logger.fine("Trying classpath: " + config);
|
||||||
return getClass().getResourceAsStream(config);
|
return getClass().getResourceAsStream(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
private InputStream getFileResource(String config) throws Exception {
|
private InputStream getFileResource(String config) throws Exception {
|
||||||
File file = new File(config);
|
File file = new File(config);
|
||||||
this.logger.fine("Trying file: " + config);
|
logger.fine("Trying file: " + config);
|
||||||
if (file.canRead()) {
|
if (file.canRead()) {
|
||||||
return new FileInputStream(file);
|
return new FileInputStream(file);
|
||||||
}
|
}
|
||||||
@ -310,7 +310,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
this.paths = parsePathsProperty(
|
this.paths = parsePathsProperty(
|
||||||
SystemPropertyUtils.resolvePlaceholders(path));
|
SystemPropertyUtils.resolvePlaceholders(path));
|
||||||
}
|
}
|
||||||
this.logger.info("Nested archive paths: " + this.paths);
|
logger.info("Nested archive paths: " + this.paths);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> parsePathsProperty(String commaSeparatedPaths) {
|
private List<String> parsePathsProperty(String commaSeparatedPaths) {
|
||||||
@ -358,7 +358,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
String customLoaderClassName = getProperty("loader.classLoader");
|
String customLoaderClassName = getProperty("loader.classLoader");
|
||||||
if (customLoaderClassName != null) {
|
if (customLoaderClassName != null) {
|
||||||
loader = wrapWithCustomClassLoader(loader, customLoaderClassName);
|
loader = wrapWithCustomClassLoader(loader, customLoaderClassName);
|
||||||
this.logger.info("Using custom class loader: " + customLoaderClassName);
|
logger.info("Using custom class loader: " + customLoaderClassName);
|
||||||
}
|
}
|
||||||
return loader;
|
return loader;
|
||||||
}
|
}
|
||||||
@ -401,14 +401,14 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
String property = SystemPropertyUtils.getProperty(propertyKey);
|
String property = SystemPropertyUtils.getProperty(propertyKey);
|
||||||
if (property != null) {
|
if (property != null) {
|
||||||
String value = SystemPropertyUtils.resolvePlaceholders(property);
|
String value = SystemPropertyUtils.resolvePlaceholders(property);
|
||||||
this.logger.fine("Property '" + propertyKey + "' from environment: " + value);
|
logger.fine("Property '" + propertyKey + "' from environment: " + value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.properties.containsKey(propertyKey)) {
|
if (this.properties.containsKey(propertyKey)) {
|
||||||
String value = SystemPropertyUtils
|
String value = SystemPropertyUtils
|
||||||
.resolvePlaceholders(this.properties.getProperty(propertyKey));
|
.resolvePlaceholders(this.properties.getProperty(propertyKey));
|
||||||
this.logger.fine("Property '" + propertyKey + "' from properties: " + value);
|
logger.fine("Property '" + propertyKey + "' from properties: " + value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -417,7 +417,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
Manifest manifest = new ExplodedArchive(this.home, false).getManifest();
|
Manifest manifest = new ExplodedArchive(this.home, false).getManifest();
|
||||||
if (manifest != null) {
|
if (manifest != null) {
|
||||||
String value = manifest.getMainAttributes().getValue(manifestKey);
|
String value = manifest.getMainAttributes().getValue(manifestKey);
|
||||||
this.logger.fine("Property '" + manifestKey
|
logger.fine("Property '" + manifestKey
|
||||||
+ "' from home directory manifest: " + value);
|
+ "' from home directory manifest: " + value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
@ -431,7 +431,7 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
if (manifest != null) {
|
if (manifest != null) {
|
||||||
String value = manifest.getMainAttributes().getValue(manifestKey);
|
String value = manifest.getMainAttributes().getValue(manifestKey);
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
this.logger.fine(
|
logger.fine(
|
||||||
"Property '" + manifestKey + "' from archive manifest: " + value);
|
"Property '" + manifestKey + "' from archive manifest: " + value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
@ -462,20 +462,19 @@ public class PropertiesLauncher extends Launcher {
|
|||||||
file = new File(this.home, root);
|
file = new File(this.home, root);
|
||||||
}
|
}
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
this.logger.info("Adding classpath entries from " + file);
|
logger.info("Adding classpath entries from " + file);
|
||||||
Archive archive = new ExplodedArchive(file, false);
|
Archive archive = new ExplodedArchive(file, false);
|
||||||
lib.add(archive);
|
lib.add(archive);
|
||||||
}
|
}
|
||||||
Archive archive = getArchive(file);
|
Archive archive = getArchive(file);
|
||||||
if (archive != null) {
|
if (archive != null) {
|
||||||
this.logger.info(
|
logger.info(
|
||||||
"Adding classpath entries from archive " + archive.getUrl() + root);
|
"Adding classpath entries from archive " + archive.getUrl() + root);
|
||||||
lib.add(archive);
|
lib.add(archive);
|
||||||
}
|
}
|
||||||
Archive nested = getNestedArchive(root);
|
Archive nested = getNestedArchive(root);
|
||||||
if (nested != null) {
|
if (nested != null) {
|
||||||
this.logger.info(
|
logger.info("Adding classpath entries from nested " + nested.getUrl() + root);
|
||||||
"Adding classpath entries from nested " + nested.getUrl() + root);
|
|
||||||
lib.add(nested);
|
lib.add(nested);
|
||||||
}
|
}
|
||||||
return lib;
|
return lib;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -46,7 +46,7 @@ import org.springframework.util.StreamUtils;
|
|||||||
*/
|
*/
|
||||||
public class ResourceBanner implements Banner {
|
public class ResourceBanner implements Banner {
|
||||||
|
|
||||||
private static final Log log = LogFactory.getLog(ResourceBanner.class);
|
private static final Log logger = LogFactory.getLog(ResourceBanner.class);
|
||||||
|
|
||||||
private Resource resource;
|
private Resource resource;
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ public class ResourceBanner implements Banner {
|
|||||||
out.println(banner);
|
out.println(banner);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
log.warn("Banner not printable: " + this.resource + " (" + ex.getClass()
|
logger.warn("Banner not printable: " + this.resource + " (" + ex.getClass()
|
||||||
+ ": '" + ex.getMessage() + "')", ex);
|
+ ": '" + ex.getMessage() + "')", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ public class SpringApplication {
|
|||||||
SERVLET_ENVIRONMENT_SOURCE_NAMES = Collections.unmodifiableSet(names);
|
SERVLET_ENVIRONMENT_SOURCE_NAMES = Collections.unmodifiableSet(names);
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Log log = LogFactory.getLog(getClass());
|
private static final Log logger = LogFactory.getLog(SpringApplication.class);
|
||||||
|
|
||||||
private final Set<Object> sources = new LinkedHashSet<Object>();
|
private final Set<Object> sources = new LinkedHashSet<Object>();
|
||||||
|
|
||||||
@ -377,7 +377,7 @@ public class SpringApplication {
|
|||||||
|
|
||||||
private SpringApplicationRunListeners getRunListeners(String[] args) {
|
private SpringApplicationRunListeners getRunListeners(String[] args) {
|
||||||
Class<?>[] types = new Class<?>[] { SpringApplication.class, String[].class };
|
Class<?>[] types = new Class<?>[] { SpringApplication.class, String[].class };
|
||||||
return new SpringApplicationRunListeners(this.log, getSpringFactoriesInstances(
|
return new SpringApplicationRunListeners(logger, getSpringFactoriesInstances(
|
||||||
SpringApplicationRunListener.class, types, this, args));
|
SpringApplicationRunListener.class, types, this, args));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -538,10 +538,10 @@ public class SpringApplication {
|
|||||||
Banner selectedBanner = selectBanner(environment);
|
Banner selectedBanner = selectBanner(environment);
|
||||||
if (this.bannerMode == Banner.Mode.LOG) {
|
if (this.bannerMode == Banner.Mode.LOG) {
|
||||||
try {
|
try {
|
||||||
this.log.info(createStringFromBanner(selectedBanner, environment));
|
logger.info(createStringFromBanner(selectedBanner, environment));
|
||||||
}
|
}
|
||||||
catch (UnsupportedEncodingException ex) {
|
catch (UnsupportedEncodingException ex) {
|
||||||
this.log.warn("Failed to create String for banner", ex);
|
logger.warn("Failed to create String for banner", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -679,7 +679,7 @@ public class SpringApplication {
|
|||||||
*/
|
*/
|
||||||
protected Log getApplicationLog() {
|
protected Log getApplicationLog() {
|
||||||
if (this.mainApplicationClass == null) {
|
if (this.mainApplicationClass == null) {
|
||||||
return this.log;
|
return logger;
|
||||||
}
|
}
|
||||||
return LogFactory.getLog(this.mainApplicationClass);
|
return LogFactory.getLog(this.mainApplicationClass);
|
||||||
}
|
}
|
||||||
@ -690,8 +690,8 @@ public class SpringApplication {
|
|||||||
* @param sources the sources to load
|
* @param sources the sources to load
|
||||||
*/
|
*/
|
||||||
protected void load(ApplicationContext context, Object[] sources) {
|
protected void load(ApplicationContext context, Object[] sources) {
|
||||||
if (this.log.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
this.log.debug(
|
logger.debug(
|
||||||
"Loading source " + StringUtils.arrayToCommaDelimitedString(sources));
|
"Loading source " + StringUtils.arrayToCommaDelimitedString(sources));
|
||||||
}
|
}
|
||||||
BeanDefinitionLoader loader = createBeanDefinitionLoader(
|
BeanDefinitionLoader loader = createBeanDefinitionLoader(
|
||||||
@ -823,8 +823,8 @@ public class SpringApplication {
|
|||||||
|
|
||||||
private void handleRunFailure(ConfigurableApplicationContext context,
|
private void handleRunFailure(ConfigurableApplicationContext context,
|
||||||
SpringApplicationRunListeners listeners, Throwable exception) {
|
SpringApplicationRunListeners listeners, Throwable exception) {
|
||||||
if (this.log.isErrorEnabled()) {
|
if (logger.isErrorEnabled()) {
|
||||||
this.log.error("Application startup failed", exception);
|
logger.error("Application startup failed", exception);
|
||||||
registerLoggedException(exception);
|
registerLoggedException(exception);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@ -839,7 +839,7 @@ public class SpringApplication {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
this.log.warn("Unable to close ApplicationContext", ex);
|
logger.warn("Unable to close ApplicationContext", ex);
|
||||||
}
|
}
|
||||||
ReflectionUtils.rethrowRuntimeException(exception);
|
ReflectionUtils.rethrowRuntimeException(exception);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2015 the original author or authors.
|
* Copyright 2012-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -61,7 +61,8 @@ class ServletContextInitializerBeans
|
|||||||
|
|
||||||
static final String DISPATCHER_SERVLET_NAME = "dispatcherServlet";
|
static final String DISPATCHER_SERVLET_NAME = "dispatcherServlet";
|
||||||
|
|
||||||
private final Log log = LogFactory.getLog(getClass());
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(ServletContextInitializerBeans.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Seen bean instances or bean names.
|
* Seen bean instances or bean names.
|
||||||
@ -131,12 +132,12 @@ class ServletContextInitializerBeans
|
|||||||
// Mark the underlying source as seen in case it wraps an existing bean
|
// Mark the underlying source as seen in case it wraps an existing bean
|
||||||
this.seen.add(source);
|
this.seen.add(source);
|
||||||
}
|
}
|
||||||
if (this.log.isDebugEnabled()) {
|
if (ServletContextInitializerBeans.logger.isDebugEnabled()) {
|
||||||
String resourceDescription = getResourceDescription(beanName, beanFactory);
|
String resourceDescription = getResourceDescription(beanName, beanFactory);
|
||||||
int order = getOrder(initializer);
|
int order = getOrder(initializer);
|
||||||
this.log.debug("Added existing " + type.getSimpleName()
|
ServletContextInitializerBeans.logger.debug("Added existing "
|
||||||
+ " initializer bean '" + beanName + "'; order=" + order
|
+ type.getSimpleName() + " initializer bean '" + beanName
|
||||||
+ ", resource=" + resourceDescription);
|
+ "'; order=" + order + ", resource=" + resourceDescription);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,8 +190,8 @@ class ServletContextInitializerBeans
|
|||||||
registration.setName(beanName);
|
registration.setName(beanName);
|
||||||
registration.setOrder(order);
|
registration.setOrder(order);
|
||||||
this.initializers.add(type, registration);
|
this.initializers.add(type, registration);
|
||||||
if (this.log.isDebugEnabled()) {
|
if (ServletContextInitializerBeans.logger.isDebugEnabled()) {
|
||||||
this.log.debug(
|
ServletContextInitializerBeans.logger.debug(
|
||||||
"Created " + type.getSimpleName() + " initializer for bean '"
|
"Created " + type.getSimpleName() + " initializer for bean '"
|
||||||
+ beanName + "'; order=" + order + ", resource="
|
+ beanName + "'; order=" + order + ", resource="
|
||||||
+ getResourceDescription(beanName, beanFactory));
|
+ getResourceDescription(beanName, beanFactory));
|
||||||
|
Loading…
Reference in New Issue
Block a user