aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-04-17 21:42:23 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-04-17 21:42:23 +0200
commite9ba99d5f9f0ca3d879fd3e702b660a287d1339f (patch)
treed968b2bb9c2ad2d7f8c47a1962f002ed2d18dc00 /server
parent5c6402aed99c94b5806dc53991ffbdea852ec33f (diff)
downloadsonarqube-e9ba99d5f9f0ca3d879fd3e702b660a287d1339f.tar.gz
sonarqube-e9ba99d5f9f0ca3d879fd3e702b660a287d1339f.zip
Log the type when Compute Engine processes a task
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java6
1 files 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());
}
}
}