From b0d49bfbd39a6d73f527710b8ca0889286daf66c Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Mon, 29 Apr 2024 20:04:14 +0900 Subject: [PATCH] trivial. enable log for policyNotification --- internal/usecase/system-notification.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/usecase/system-notification.go b/internal/usecase/system-notification.go index 4a2a8db2..2ee8b34f 100644 --- a/internal/usecase/system-notification.go +++ b/internal/usecase/system-notification.go @@ -8,6 +8,7 @@ import ( "time" "github.com/google/uuid" + "github.com/openinfradev/tks-api/internal/helper" "github.com/openinfradev/tks-api/internal/mail" "github.com/openinfradev/tks-api/internal/middleware/auth/request" "github.com/openinfradev/tks-api/internal/model" @@ -57,6 +58,8 @@ func (u *SystemNotificationUsecase) Create(ctx context.Context, input domain.Cre return fmt.Errorf("No data found") } + log.Info(ctx, helper.ModelToJson(input)) + allClusters, err := u.clusterRepo.Fetch(ctx, nil) if err != nil { return fmt.Errorf("No clusters")