]> source.dussan.org Git - sonarqube.git/commitdiff
Log the type when Compute Engine processes a task
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 17 Apr 2016 19:42:23 +0000 (21:42 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 17 Apr 2016 19:42:23 +0000 (21:42 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java

index 11c84800166d21f4e34a90bb453e153fe8cab044..19f19cc2e1d5dc6b0a1de1afda482d21a3bfe958 100644 (file)
@@ -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());
     }
   }
 }