remove debug logger

This commit is contained in:
Hayden 2022-12-05 17:51:30 -09:00
parent 0e5d9528be
commit f1082dafed
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -7,9 +7,7 @@ import (
"path/filepath"
"time"
"ariga.io/atlas/sql/migrate"
atlas "ariga.io/atlas/sql/migrate"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql/schema"
"github.com/hay-kot/homebox/backend/app/api/static/docs"
"github.com/hay-kot/homebox/backend/internal/core/services"
@ -96,13 +94,6 @@ func run(cfg *config.Config) error {
schema.WithDropColumn(true),
schema.WithDropIndex(true),
schema.WithAtlas(true),
schema.WithApplyHook(func(next schema.Applier) schema.Applier {
return schema.ApplyFunc(func(ctx context.Context, conn dialect.ExecQuerier, plan *migrate.Plan) error {
// Log the plan.
log.Info().Msgf("Applying migration %s", plan.Version)
return next.Apply(ctx, conn, plan)
})
}),
}
err = c.Schema.Create(context.Background(), options...)