Skip to content

Commit de97fc9

Browse files
Update warn to migrate model
1 parent 95e5ff5 commit de97fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trinitygo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (app *Application) initModel() {
463463
app.logger.Fatalf("booting installing model : %v failed , kind %v , should be ptr , ", reflect.TypeOf(bootingModel.modelInstance), instanceKind)
464464
}
465465
if err := app.db.AutoMigrate(bootingModel.modelInstance).Error; err != nil {
466-
app.logger.Fatalf("booting installing model : %v failed , err : %v , ", reflect.TypeOf(bootingModel.modelInstance), err)
466+
app.logger.Warnf("booting installing model : %v failed , err : %v , ", reflect.TypeOf(bootingModel.modelInstance), err)
467467
}
468468
startup.AppendStartupDebuggerInfo(fmt.Sprintf("booting installing model : %v , ...installed , ", reflect.TypeOf(bootingModel.modelInstance)))
469469
if bootingModel.defaultValues != nil {

0 commit comments

Comments
 (0)