(connID uint64, endpoint string, err error)
| 208 | } |
| 209 | |
| 210 | func FailedToDialNewEndpoint(connID uint64, endpoint string, err error) string { |
| 211 | message := fmt.Sprintf("conn[%d] %s %s: %v", connID, FailedToDialNewEndpointMessage, endpoint, err) |
| 212 | return appendJSONIfDebug(message, map[string]interface{}{ |
| 213 | "connID": connID, |
| 214 | "endpoint": endpoint, |
| 215 | "error": err.Error(), |
| 216 | }) |
| 217 | } |
| 218 | |
| 219 | func ReachedMaxHandoffRetries(connID uint64, endpoint string, maxRetries int) string { |
| 220 | message := fmt.Sprintf("conn[%d] %s to %s (max retries: %d)", connID, ReachedMaxHandoffRetriesMessage, endpoint, maxRetries) |
no test coverage detected