Reduce startup logging.

This commit is contained in:
Jan Bartel 2020-09-16 15:44:56 +02:00
parent b36430e5dc
commit 16bc946ee8
4 changed files with 9 additions and 5 deletions

View File

@ -480,10 +480,10 @@ public class AnnotationConfiguration extends AbstractConfiguration
boolean timeout = !latch.await(getMaxScanWait(context), TimeUnit.SECONDS);
long elapsedMs = TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS);
LOG.info("Annotation scanning elapsed time={}ms", elapsedMs);
if (LOG.isDebugEnabled())
{
LOG.debug("Annotation scanning elapsed time={}ms", elapsedMs);
for (ParserTask p : _parserTasks)
{
LOG.debug("Scanned {} in {}ms", p.getResource(), TimeUnit.MILLISECONDS.convert(p.getStatistic().getElapsed(), TimeUnit.NANOSECONDS));

View File

@ -127,7 +127,7 @@ public abstract class ScanningAppProvider extends ContainerLifeCycle implements
if (_monitored.size() == 0)
throw new IllegalStateException("No configuration dir specified");
LOG.info("Deployment monitor {} at interval {}", _monitored, _scanInterval);
LOG.info("Deployment monitor {}", _monitored);
List<File> files = new ArrayList<>();
for (Resource resource : _monitored)
{

View File

@ -334,6 +334,7 @@ public class DefaultSessionIdManager extends ContainerLifeCycle implements Sessi
addBean(_houseKeeper, true);
}
LOG.info("Session workerName={}", _workerName);
_houseKeeper.start();
}

View File

@ -130,7 +130,8 @@ public class HouseKeeper extends AbstractLifeCycle
_task.cancel();
if (_runner == null)
_runner = new Runner();
LOG.info("{} scavenging every {}ms", _sessionIdManager.getWorkerName(), _intervalMs);
if (LOG.isDebugEnabled())
LOG.debug("{} scavenging every {}ms", _sessionIdManager.getWorkerName(), _intervalMs);
_task = _scheduler.schedule(_runner, _intervalMs, TimeUnit.MILLISECONDS);
}
}
@ -147,7 +148,8 @@ public class HouseKeeper extends AbstractLifeCycle
if (_task != null)
{
_task.cancel();
LOG.info("{} stopped scavenging", _sessionIdManager.getWorkerName());
if (LOG.isDebugEnabled())
LOG.debug("{} stopped scavenging", _sessionIdManager.getWorkerName());
}
_task = null;
if (_ownScheduler && _scheduler != null)
@ -186,7 +188,8 @@ public class HouseKeeper extends AbstractLifeCycle
if (sec <= 0)
{
_intervalMs = 0L;
LOG.info("{} scavenging disabled", _sessionIdManager.getWorkerName());
if (LOG.isDebugEnabled())
LOG.debug("{} scavenging disabled", _sessionIdManager.getWorkerName());
stopScavenging();
}
else