Undid an experiment with RntbdReporter.doReportIssue because the error messages produced are less readable

This commit is contained in:
David.Noble@microsoft.com 2019-07-25 19:31:02 -07:00
Родитель 80fa55cf85
Коммит 1a3c63ad5d
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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)
);
}
}

Просмотреть файл

@ -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<StoreResponse> responseSingle;
client.toString();
try {
responseSingle = client.invokeStoreAsync(physicalAddress, null, request);