Include cluster client in log line for command cancellation.
This allows accessing cancellations by source, MTT vs ATP.
Bug: 140260903
Test: unit tests
Change-Id: I6996cd670f6210d69f98e443f38e73fdde43f2c4
diff --git a/src/com/android/tradefed/cluster/ClusterCommandScheduler.java b/src/com/android/tradefed/cluster/ClusterCommandScheduler.java
index 052cf17..218f910 100644
--- a/src/com/android/tradefed/cluster/ClusterCommandScheduler.java
+++ b/src/com/android/tradefed/cluster/ClusterCommandScheduler.java
@@ -384,8 +384,9 @@
// TODO: retrieve cancel reason from TFC.
String cause =
String.format(
- "Command (requestId=%s, commandId=%s) has been marked"
- + " canceled by the cluster",
+ "The cluster client %s has marked command "
+ + "(requestId=%s, commandId=%s) canceled",
+ getClusterClient().getClass().getSimpleName(),
mCommandTask.getRequestId(),
mCommandTask.getCommandId());
CLog.w("Stop invocation due to: %s", cause);