diff --git a/swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/engine/SwaggerProducerOperation.java b/swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/engine/SwaggerProducerOperation.java index b715abd9576..f348563fbf0 100644 --- a/swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/engine/SwaggerProducerOperation.java +++ b/swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/engine/SwaggerProducerOperation.java @@ -22,7 +22,6 @@ import java.util.concurrent.CompletableFuture; -import org.apache.servicecomb.foundation.common.utils.ExceptionUtils; import org.apache.servicecomb.foundation.common.utils.SPIServiceUtils; import org.apache.servicecomb.swagger.invocation.AsyncResponse; import org.apache.servicecomb.swagger.invocation.Response; @@ -153,7 +152,7 @@ public void doCompletableFutureInvoke(SwaggerInvocation invocation, AsyncRespons } catch (Throwable e) { if (shouldPrintErrorLog(e)) { LOGGER.error("unexpected error operation={}, message={}", - invocation.getInvocationQualifiedName(), ExceptionUtils.getExceptionMessageWithoutTrace(e)); + invocation.getInvocationQualifiedName(), e.getMessage()); } invocation.onBusinessMethodFinish(); invocation.onBusinessFinish(); @@ -186,7 +185,7 @@ public Response doInvoke(SwaggerInvocation invocation) { } catch (Throwable e) { if (shouldPrintErrorLog(e)) { LOGGER.error("unexpected error operation={}, message={}", - invocation.getInvocationQualifiedName(), ExceptionUtils.getExceptionMessageWithoutTrace(e)); + invocation.getInvocationQualifiedName(), e.getMessage()); } invocation.onBusinessMethodFinish(); invocation.onBusinessFinish();