Reduce startup session logging
Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
parent
bf39dc186a
commit
b36430e5dc
|
@ -324,12 +324,10 @@ public class DefaultSessionIdManager extends ContainerLifeCycle implements Sessi
|
|||
_workerName = "node" + (inst == null ? "0" : inst);
|
||||
}
|
||||
|
||||
LOG.info("DefaultSessionIdManager workerName={}", _workerName);
|
||||
_workerAttr = (_workerName != null && _workerName.startsWith("$")) ? _workerName.substring(1) : null;
|
||||
|
||||
if (_houseKeeper == null)
|
||||
{
|
||||
LOG.info("No SessionScavenger set, using defaults");
|
||||
_ownHouseKeeper = true;
|
||||
_houseKeeper = new HouseKeeper();
|
||||
_houseKeeper.setSessionIdManager(this);
|
||||
|
|
|
@ -119,7 +119,7 @@ public class HouseKeeper extends AbstractLifeCycle
|
|||
_ownScheduler = true;
|
||||
_scheduler.start();
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Using own scheduler for scavenging");
|
||||
LOG.debug("{} using own scheduler for scavenging", _sessionIdManager.getWorkerName());
|
||||
}
|
||||
else if (!_scheduler.isStarted())
|
||||
throw new IllegalStateException("Shared scheduler not started");
|
||||
|
@ -130,7 +130,7 @@ public class HouseKeeper extends AbstractLifeCycle
|
|||
_task.cancel();
|
||||
if (_runner == null)
|
||||
_runner = new Runner();
|
||||
LOG.info("{} Scavenging every {}ms", _sessionIdManager.getWorkerName(), _intervalMs);
|
||||
LOG.info("{} scavenging every {}ms", _sessionIdManager.getWorkerName(), _intervalMs);
|
||||
_task = _scheduler.schedule(_runner, _intervalMs, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ public class HouseKeeper extends AbstractLifeCycle
|
|||
if (_task != null)
|
||||
{
|
||||
_task.cancel();
|
||||
LOG.info("{} Stopped scavenging", _sessionIdManager.getWorkerName());
|
||||
LOG.info("{} stopped scavenging", _sessionIdManager.getWorkerName());
|
||||
}
|
||||
_task = null;
|
||||
if (_ownScheduler && _scheduler != null)
|
||||
|
@ -186,13 +186,13 @@ public class HouseKeeper extends AbstractLifeCycle
|
|||
if (sec <= 0)
|
||||
{
|
||||
_intervalMs = 0L;
|
||||
LOG.info("{} Scavenging disabled", _sessionIdManager.getWorkerName());
|
||||
LOG.info("{} scavenging disabled", _sessionIdManager.getWorkerName());
|
||||
stopScavenging();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sec < 10)
|
||||
LOG.warn("{} Short interval of {}sec for session scavenging.", _sessionIdManager.getWorkerName(), sec);
|
||||
LOG.warn("{} short interval of {}sec for session scavenging.", _sessionIdManager.getWorkerName(), sec);
|
||||
|
||||
_intervalMs = sec * 1000L;
|
||||
|
||||
|
|
Loading…
Reference in New Issue