Debugf creates a debug string that includes the task ID.
(fmt string, v ...any)
| 50 | |
| 51 | // Debugf creates a debug string that includes the task ID. |
| 52 | func (t *Task) Debugf(fmt string, v ...any) { |
| 53 | if log.IsLogging(log.Debug) { |
| 54 | log.DebugfAtDepth(1, *t.logPrefix.Load()+fmt, v...) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // IsLogging returns true iff this level is being logged. |
| 59 | func (t *Task) IsLogging(level log.Level) bool { |
no test coverage detected