From 1a3c63ad5d4dbd05b170580912c7ee18ba44182e Mon Sep 17 00:00:00 2001 From: "David.Noble@microsoft.com" Date: Thu, 25 Jul 2019 19:31:02 -0700 Subject: [PATCH] Undid an experiment with RntbdReporter.doReportIssue because the error messages produced are less readable --- .../internal/directconnectivity/rntbd/RntbdReporter.java | 8 ++++---- .../directconnectivity/RntbdTransportClientTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdReporter.java b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdReporter.java index 61a0437c..0ccf6fd0 100644 --- a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdReporter.java +++ b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdReporter.java @@ -73,12 +73,12 @@ public final class RntbdReporter { if (throwable == null) { logger.error("Report this {} issue to ensure it is addressed:\n[{}]\n[{}]\n[{}]", - codeSource, subject, stackTrace, formattingTuple.getMessage() + codeSource, subject, stackTrace[2], formattingTuple.getMessage() ); } else { - logger.error("Report this {} issue to ensure it is addressed:\n[{}]\n[{}]\n[{}{}{}]", - codeSource, subject, stackTrace, formattingTuple.getMessage(), - throwable, ExceptionUtils.getStackTrace(throwable) + logger.error("Report this {} issue to ensure it is addressed:\n[{}]\n[{}]\n[{}{}]", + codeSource, subject, stackTrace[2], formattingTuple.getMessage(), + ExceptionUtils.getStackTrace(throwable) ); } } diff --git a/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java b/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java index 1be19feb..15032fb9 100644 --- a/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java +++ b/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java @@ -39,6 +39,7 @@ import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdConte import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextNegotiator; import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdContextRequest; import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdEndpoint; +import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdReporter; import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdRequest; import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdRequestArgs; import com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdRequestEncoder; @@ -723,7 +724,6 @@ public final class RntbdTransportClientTest { try (final RntbdTransportClient client = getRntbdTransportClientUnderTest(userAgent, timeout, response)) { final Single responseSingle; - client.toString(); try { responseSingle = client.invokeStoreAsync(physicalAddress, null, request);