change log

pull/548/head
微凉 2021-11-26 20:20:32 +08:00
parent 59b8f1084a
commit fe73ece57d
2 changed files with 4 additions and 4 deletions

View File

@ -52,9 +52,9 @@ func main() {
}
r := gin.Default()
server.InitApiRouter(r)
log.Info("starting server")
err := r.Run(fmt.Sprintf("%s:%d", conf.Conf.Address, conf.Conf.Port))
base := fmt.Sprintf("%s:%d", conf.Conf.Address, conf.Conf.Port)
log.Info("start server @ %s", base)
err := r.Run(base)
if err != nil {
log.Errorf("failed to start: %s", err.Error())
}

View File

@ -71,7 +71,7 @@ func InitModel() {
default:
log.Fatalf("not supported database type: %s", databaseConfig.Type)
}
log.Infof("auto migrate model")
log.Infof("auto migrate model...")
err := conf.DB.AutoMigrate(&model.SettingItem{}, &model.Account{}, &model.Meta{})
if err != nil {
log.Fatalf("failed to auto migrate")