From e9ba99d5f9f0ca3d879fd3e702b660a287d1339f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 17 Apr 2016 21:42:23 +0200 Subject: [PATCH] Log the type when Compute Engine processes a task --- .../computation/taskprocessor/CeWorkerCallableImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java b/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java index 11c84800166..19f19cc2e1d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java @@ -96,14 +96,14 @@ public class CeWorkerCallableImpl implements CeWorkerCallable { } private static Profiler startProfiler(CeTask task) { - return Profiler.create(LOG).startInfo("Execute task | project={} | id={}", task.getComponentKey(), task.getUuid()); + return Profiler.create(LOG).startInfo("Execute task | project={} | type={} | id={}", task.getComponentKey(), task.getType(), task.getUuid()); } private static void stopProfiler(Profiler profiler, CeTask task, CeActivityDto.Status status) { if (status == CeActivityDto.Status.FAILED) { - profiler.stopError("Executed task | project={} | id={}", task.getComponentKey(), task.getUuid()); + profiler.stopError("Executed task | project={} | type={} | id={}", task.getComponentKey(), task.getType(), task.getUuid()); } else { - profiler.stopInfo("Executed task | project={} | id={}", task.getComponentKey(), task.getUuid()); + profiler.stopInfo("Executed task | project={} | type={} | id={}", task.getComponentKey(), task.getType(), task.getUuid()); } } } -- 2.39.5