MCPcopy Index your code
hub / github.com/bytebase/bytebase / LogDatabaseSyncStart

Method LogDatabaseSyncStart

backend/plugin/db/driver.go:232–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func (o *ExecuteOptions) LogDatabaseSyncStart() {
233 if o == nil || o.CreateTaskRunLog == nil {
234 return
235 }
236 err := o.CreateTaskRunLog(time.Now(), &storepb.TaskRunLog{
237 Type: storepb.TaskRunLog_DATABASE_SYNC_START,
238 DatabaseSyncStart: &storepb.TaskRunLog_DatabaseSyncStart{},
239 })
240 if err != nil {
241 slog.Warn("failed to log database sync start", log.BBError(err))
242 }
243}
244
245func (o *ExecuteOptions) LogDatabaseSyncEnd(e string) {
246 if o == nil || o.CreateTaskRunLog == nil {

Callers 4

runStandardMigrationMethod · 0.95
runGhostMigrationMethod · 0.95
runVersionedReleaseMethod · 0.95
runDeclarativeReleaseMethod · 0.95

Calls 2

BBErrorFunction · 0.92
CreateTaskRunLogMethod · 0.80

Tested by

no test coverage detected