Browse Source

Make the description of 'RPCTimedOut' static (#1009)

Motivation:

When printing the 'RPCTimedOut' error, the time limit is also included.
Since these are often deadline based limits, the message is often
unique: this makes it cumbersome to correlate timeout failures logs.

Modifications:

- Remove the `timeLimit` from the `description` of `RPCTimedOut`.

Result:

- `RPCTimedOut` failures are easier to correlate in logs.
George Barnett 5 years ago
parent
commit
78ed70c621
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/GRPC/GRPCError.swift

+ 1 - 1
Sources/GRPC/GRPCError.swift

@@ -62,7 +62,7 @@ public enum GRPCError {
     }
     }
 
 
     public var description: String {
     public var description: String {
-      return "RPC timed out before completing (\(self.timeLimit))"
+      return "RPC timed out before completing"
     }
     }
 
 
     public func makeGRPCStatus() -> GRPCStatus {
     public func makeGRPCStatus() -> GRPCStatus {