diff --git a/server/src/main/java/com/microsoft/java/bs/core/internal/log/LogEntity.java b/server/src/main/java/com/microsoft/java/bs/core/internal/log/LogEntity.java index b47eeceb..21bd1cb2 100644 --- a/server/src/main/java/com/microsoft/java/bs/core/internal/log/LogEntity.java +++ b/server/src/main/java/com/microsoft/java/bs/core/internal/log/LogEntity.java @@ -9,14 +9,14 @@ public class LogEntity { private final String buildServerVersion; private final String operationName; private final String duration; - private final String stackTrace; + private final String trace; private final String rootCauseMessage; private LogEntity(Builder builder) { this.buildServerVersion = builder.buildServerVersion; this.operationName = builder.operationName; this.duration = builder.duration; - this.stackTrace = builder.stackTrace; + this.trace = builder.trace; this.rootCauseMessage = builder.rootCauseMessage; } @@ -24,8 +24,8 @@ public String getRootCauseMessage() { return rootCauseMessage; } - public String getStackTrace() { - return stackTrace; + public String getTrace() { + return trace; } public String getOperationName() { @@ -46,7 +46,7 @@ public String getDuration() { public static class Builder { private final String buildServerVersion; private String rootCauseMessage; - private String stackTrace; + private String trace; private String operationName; private String duration; @@ -59,8 +59,8 @@ public Builder rootCauseMessage(String rootCauseMessage) { return this; } - public Builder stackTrace(String stackTrace) { - this.stackTrace = stackTrace; + public Builder trace(String trace) { + this.trace = trace; return this; } diff --git a/server/src/main/java/com/microsoft/java/bs/core/internal/server/GradleBuildServer.java b/server/src/main/java/com/microsoft/java/bs/core/internal/server/GradleBuildServer.java index f554de40..ff23cb5a 100644 --- a/server/src/main/java/com/microsoft/java/bs/core/internal/server/GradleBuildServer.java +++ b/server/src/main/java/com/microsoft/java/bs/core/internal/server/GradleBuildServer.java @@ -216,7 +216,7 @@ private CompletableFuture failure(String methodName, Throwable throwable) String rootCauseMessage = rootCause != null ? rootCause.getMessage() : null; LogEntity entity = new LogEntity.Builder() .operationName(escapeMethodName(methodName)) - .stackTrace(stackTrace) + .trace(stackTrace) .rootCauseMessage(rootCauseMessage) .build(); String message = String.format("Failed to process '%s': %s", methodName, stackTrace);