Lower logging level for registering/unregistering tasks with the task manager

At the debug level the task manager is too talkative.
This commit is contained in:
Igor Motov 2016-01-05 15:15:02 -05:00
parent a89dba27c2
commit 9ca4386fba
1 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ public class TaskManager extends AbstractComponent {
public Task register(String type, String action, TransportRequest request) {
Task task = request.createTask(taskIdGenerator.incrementAndGet(), type, action);
if (task != null) {
if (logger.isDebugEnabled()) {
logger.debug("register {} [{}] [{}] [{}]", task.getId(), type, action, task.getDescription());
if (logger.isTraceEnabled()) {
logger.trace("register {} [{}] [{}] [{}]", task.getId(), type, action, task.getDescription());
}
Task previousTask = tasks.put(task.getId(), task);
assert previousTask == null;
@ -62,7 +62,7 @@ public class TaskManager extends AbstractComponent {
* Unregister the task
*/
public void unregister(Task task) {
logger.debug("unregister task for id: {}", task.getId());
logger.trace("unregister task for id: {}", task.getId());
tasks.remove(task.getId());
}