Log4jWebConfigurer does not try to parse empty "log4jRefreshInterval" context-param
Issue: SPR-11507
This commit is contained in:
parent
f3884084f2
commit
9b771573ec
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -21,6 +21,7 @@ import javax.servlet.ServletContext;
|
|||
|
||||
import org.springframework.util.Log4jConfigurer;
|
||||
import org.springframework.util.ResourceUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* Convenience class that performs custom log4j initialization for web environments,
|
||||
|
|
@ -136,7 +137,7 @@ public abstract class Log4jWebConfigurer {
|
|||
|
||||
// Check whether refresh interval was specified.
|
||||
String intervalString = servletContext.getInitParameter(REFRESH_INTERVAL_PARAM);
|
||||
if (intervalString != null) {
|
||||
if (StringUtils.hasText(intervalString)) {
|
||||
// Initialize with refresh interval, i.e. with log4j's watchdog thread,
|
||||
// checking the file in the background.
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue