(w http.ResponseWriter, r *http.Request, err error)
| 201 | } |
| 202 | |
| 203 | func (h *Hub) httpAuthorizationError(w http.ResponseWriter, r *http.Request, err error) { |
| 204 | http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized) |
| 205 | |
| 206 | ctx := r.Context() |
| 207 | if h.logger.Enabled(ctx, slog.LevelDebug) { |
| 208 | h.logger.LogAttrs(ctx, slog.LevelDebug, "Topic selectors not matched, not provided or authorization error", slog.Any("error", err)) |
| 209 | } |
| 210 | } |
no test coverage detected