Skip to content

Commit a9e810c

Browse files
authored
Update call debugger display to show status code (#2259)
1 parent 6429ae2 commit a9e810c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Grpc.Core.Api/Internal/CallDebuggerHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static string DebuggerToString(AsyncCallState callState)
3535
debugText += $"IsComplete = {((status != null) ? "true" : "false")}";
3636
if (status != null)
3737
{
38-
debugText += $", Status = {status}";
38+
debugText += $", StatusCode = {status.Value.StatusCode}";
3939
}
4040
return debugText;
4141
}

test/FunctionalTests/Client/AuthorizationTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright notice and license
1+
#region Copyright notice and license
22

33
// Copyright 2019 The gRPC Authors
44
//
@@ -71,7 +71,6 @@ Task<HelloReply> UnaryTelemetryHeader(HelloRequest request, ServerCallContext co
7171
// Act
7272
await call.ResponseAsync.DefaultTimeout();
7373

74-
7574
Assert.AreEqual("Bearer token!", authorization);
7675
}
7776

0 commit comments

Comments
 (0)