From f1082dafed3b597208b0fdfc5a27f2e42cebce28 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Mon, 5 Dec 2022 17:51:30 -0900 Subject: [PATCH] remove debug logger --- backend/app/api/main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/app/api/main.go b/backend/app/api/main.go index 08fe52c..6a15e30 100644 --- a/backend/app/api/main.go +++ b/backend/app/api/main.go @@ -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...)