()
| 258 | } |
| 259 | |
| 260 | func (o *ExecuteOptions) LogSchemaDumpStart() { |
| 261 | if o == nil || o.CreateTaskRunLog == nil { |
| 262 | return |
| 263 | } |
| 264 | err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{ |
| 265 | Type: storepb.TaskRunLog_SCHEMA_DUMP_START, |
| 266 | SchemaDumpStart: &storepb.TaskRunLog_SchemaDumpStart{}, |
| 267 | }) |
| 268 | if err != nil { |
| 269 | slog.Warn("failed to log schema dump start", log.BBError(err)) |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | func (o *ExecuteOptions) LogSchemaDumpEnd(derr string) { |
| 274 | if o == nil || o.CreateTaskRunLog == nil { |
nothing calls this directly
no test coverage detected