(depth int, sh slog.Handler)
| 65 | } |
| 66 | |
| 67 | func withTerminalCallDepth(depth int, sh slog.Handler) slog.Handler { |
| 68 | if v, ok := sh.(*callDepthHandler); ok { |
| 69 | sh = v.sh |
| 70 | } |
| 71 | return &callDepthHandler{depth: depth, isTerminal: true, sh: sh} |
| 72 | } |
| 73 | |
| 74 | type callDepthHandler struct { |
| 75 | depth int |
no outgoing calls
searching dependent graphs…