recordRecentError adds a redacted error to the server's ring (nil-safe).
(e RecentError)
| 82 | |
| 83 | // recordRecentError adds a redacted error to the server's ring (nil-safe). |
| 84 | func (s *Server) recordRecentError(e RecentError) { |
| 85 | if s != nil { |
| 86 | s.recentErrors.add(e) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // RecentErrors returns up to limit of this server's most recent redacted query |
| 91 | // errors, newest first. Used by the control-plane admin Errors page (fanned out |