(_ context.Context, r slog.Record)
| 39 | } |
| 40 | |
| 41 | func (h *retryLogSignalHandler) Handle(_ context.Context, r slog.Record) error { |
| 42 | if r.Message == "Origin fetch failed with retriable error, retrying." { |
| 43 | h.once.Do(func() { close(h.ch) }) |
| 44 | } |
| 45 | return nil |
| 46 | } |
| 47 | |
| 48 | func (h *retryLogSignalHandler) WithAttrs([]slog.Attr) slog.Handler { |
| 49 | return h |