(ctx context.Context, err error)
| 103 | } |
| 104 | |
| 105 | func shouldLog(ctx context.Context, err error) (bool, string) { |
| 106 | var optional OptionalLogging |
| 107 | if !errors.As(err, &optional) { |
| 108 | return true, "" |
| 109 | } |
| 110 | |
| 111 | return optional.ShouldLog(ctx) |
| 112 | } |
no test coverage detected