(depth int, sh slog.Handler)
| 57 | } |
| 58 | |
| 59 | func withCallDepth(depth int, sh slog.Handler) slog.Handler { |
| 60 | if v, ok := sh.(*callDepthHandler); ok { |
| 61 | sh = v.sh |
| 62 | return &callDepthHandler{depth: depth, isTerminal: v.isTerminal, sh: sh} |
| 63 | } |
| 64 | return &callDepthHandler{depth: depth, sh: sh} |
| 65 | } |
| 66 | |
| 67 | func withTerminalCallDepth(depth int, sh slog.Handler) slog.Handler { |
| 68 | if v, ok := sh.(*callDepthHandler); ok { |
no outgoing calls
searching dependent graphs…