()
| 202 | } |
| 203 | |
| 204 | func (o *ExecuteOptions) LogComputeDiffStart() { |
| 205 | if o == nil || o.CreateTaskRunLog == nil { |
| 206 | return |
| 207 | } |
| 208 | err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{ |
| 209 | Type: storepb.TaskRunLog_COMPUTE_DIFF_START, |
| 210 | ComputeDiffStart: &storepb.TaskRunLog_ComputeDiffStart{}, |
| 211 | }) |
| 212 | if err != nil { |
| 213 | slog.Warn("failed to log compute diff start", log.BBError(err)) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | func (o *ExecuteOptions) LogComputeDiffEnd(e string) { |
| 218 | if o == nil || o.CreateTaskRunLog == nil { |
no test coverage detected