From a875a2d2d52f888663680d5ac8e4cf9748e04b33 Mon Sep 17 00:00:00 2001 From: pyshx Date: Mon, 6 Nov 2023 20:02:58 +0530 Subject: [PATCH] chore(server): remove debug statements --- .../internal/adapter/gql/resolver_mutation_storytelling.go | 3 --- server/internal/usecase/interactor/storytelling.go | 5 ----- 2 files changed, 8 deletions(-) diff --git a/server/internal/adapter/gql/resolver_mutation_storytelling.go b/server/internal/adapter/gql/resolver_mutation_storytelling.go index 8f0e6dddd8..36133680a4 100644 --- a/server/internal/adapter/gql/resolver_mutation_storytelling.go +++ b/server/internal/adapter/gql/resolver_mutation_storytelling.go @@ -7,7 +7,6 @@ import ( "github.com/reearth/reearth/server/internal/adapter/gql/gqlmodel" "github.com/reearth/reearth/server/internal/usecase/interfaces" "github.com/reearth/reearth/server/pkg/id" - "github.com/reearth/reearthx/log" "github.com/samber/lo" ) @@ -39,8 +38,6 @@ func (r *mutationResolver) UpdateStory(ctx context.Context, input gqlmodel.Updat return nil, err } - log.Debugfc(ctx, "inp: %v", *input.BgColor) - inp := interfaces.UpdateStoryInput{ SceneID: sceneId, StoryID: storyId, diff --git a/server/internal/usecase/interactor/storytelling.go b/server/internal/usecase/interactor/storytelling.go index 2103dde7e6..fc4ce39d6b 100644 --- a/server/internal/usecase/interactor/storytelling.go +++ b/server/internal/usecase/interactor/storytelling.go @@ -18,7 +18,6 @@ import ( "github.com/reearth/reearth/server/pkg/scene/builder" "github.com/reearth/reearth/server/pkg/storytelling" "github.com/reearth/reearthx/account/accountusecase/accountrepo" - "github.com/reearth/reearthx/log" "github.com/reearth/reearthx/rerror" "github.com/reearth/reearthx/usecasex" "github.com/samber/lo" @@ -171,14 +170,10 @@ func (i *Storytelling) Update(ctx context.Context, inp interfaces.UpdateStoryInp story.SetPanelPosition(*inp.PanelPosition) } - log.Debugfc(ctx, "inp2: %v", *inp.BgColor) - if inp.BgColor != nil { story.SetBgColor(*inp.BgColor) } - log.Debugfc(ctx, "story.bgColor: %v", story.BgColor()) - oldAlias := story.Alias() if inp.Alias != nil && *inp.Alias != oldAlias { if err := story.UpdateAlias(*inp.Alias); err != nil {