Skip to content

Commit

Permalink
refactor: add sendSubscribeMail log
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed May 29, 2024
1 parent 370dc21 commit 81b9e83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/usecase/subscription/subscriber_ucase.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func sendSubscribeMail(host string, port int, userName, password, email, token s
Token: token,
}

slog.Info("sendSubscribeMail", "host", host, "port", port, "userName", userName, "password", password, "email", email, "token", token)

_, b, _, _ := runtime.Caller(0)
configDirPath := path.Join(path.Dir(b))
t, err := template.ParseFiles(fmt.Sprintf("%s/template/subscription.html", configDirPath))
Expand Down

0 comments on commit 81b9e83

Please sign in to comment.