Issue #453 Change logging of setting session maxInactiveInterval to DEBUG from WARN

This commit is contained in:
Jan Bartel 2016-03-24 10:03:39 +11:00
parent f2216ad108
commit 1c07172635
2 changed files with 15 additions and 8 deletions

View File

@ -557,10 +557,13 @@ public abstract class AbstractSession implements AbstractSessionManager.SessionI
@Override
public void setMaxInactiveInterval(int secs)
{
if (secs <= 0)
LOG.warn("Session {} is now immortal (maxInactiveInterval={})", _clusterId, secs);
else if (LOG.isDebugEnabled())
LOG.debug("Session {} maxInactiveInterval={}", _clusterId, secs);
if (LOG.isDebugEnabled())
{
if (secs <= 0)
LOG.debug("Session {} is now immortal (maxInactiveInterval={})", _clusterId, secs);
else
LOG.debug("Session {} maxInactiveInterval={}", _clusterId, secs);
}
_maxIdleMs=(long)secs*1000L;
}

View File

@ -627,10 +627,14 @@ public abstract class AbstractSessionManager extends ContainerLifeCycle implemen
public void setMaxInactiveInterval(int seconds)
{
_dftMaxIdleSecs=seconds;
if (_dftMaxIdleSecs <= 0)
__log.warn("Sessions created by this manager are immortal (default maxInactiveInterval={})"+_dftMaxIdleSecs);
else if (__log.isDebugEnabled())
__log.debug("SessionManager default maxInactiveInterval={}", _dftMaxIdleSecs);
if (__log.isDebugEnabled())
{
if (_dftMaxIdleSecs <= 0)
__log.debug("Sessions created by this manager are immortal (default maxInactiveInterval={})"+_dftMaxIdleSecs);
else
__log.debug("SessionManager default maxInactiveInterval={}", _dftMaxIdleSecs);
}
}
/* ------------------------------------------------------------ */