Errorf prints `v` with format `format` using fmt.Printf.
(ctx context.Context, format string, v ...any)
| 53 | |
| 54 | // Errorf prints `v` with format `format` using fmt.Printf. |
| 55 | func Errorf(ctx context.Context, format string, v ...any) { |
| 56 | if !utils.IsDebugEnabled() { |
| 57 | return |
| 58 | } |
| 59 | doPrint(ctx, fmt.Sprintf(format, v...), true) |
| 60 | } |
| 61 | |
| 62 | // PrintFunc prints the output from function `f`. |
| 63 | // It only calls function `f` if debug mode is enabled. |
no test coverage detected
searching dependent graphs…