Skip to content

Commit

Permalink
Update call debugger display to show status code (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Aug 26, 2023
1 parent 6429ae2 commit a9e810c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Grpc.Core.Api/Internal/CallDebuggerHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static string DebuggerToString(AsyncCallState callState)
debugText += $"IsComplete = {((status != null) ? "true" : "false")}";
if (status != null)
{
debugText += $", Status = {status}";
debugText += $", StatusCode = {status.Value.StatusCode}";
}
return debugText;
}
Expand Down
3 changes: 1 addition & 2 deletions test/FunctionalTests/Client/AuthorizationTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region Copyright notice and license
#region Copyright notice and license

// Copyright 2019 The gRPC Authors
//
Expand Down Expand Up @@ -71,7 +71,6 @@ Task<HelloReply> UnaryTelemetryHeader(HelloRequest request, ServerCallContext co
// Act
await call.ResponseAsync.DefaultTimeout();


Assert.AreEqual("Bearer token!", authorization);
}

Expand Down

0 comments on commit a9e810c

Please sign in to comment.