Skip to content

Commit 64cad37

Browse files
committed
Revert "debugging log emails"
This reverts commit 6f2c44b.
1 parent 6f2c44b commit 64cad37

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cmd/api/admin.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ import (
1313
"strings"
1414
"time"
1515

16-
"slices"
17-
1816
db "github.com/Hopertz/rent/db/sqlc"
1917
"github.com/labstack/echo/v4"
18+
"slices"
2019
)
2120

2221
type SignupData struct {
@@ -40,11 +39,8 @@ func (app *application) registerAdminHandler(c echo.Context) error {
4039
return c.JSON(http.StatusBadRequest, envelope{"error": err.Error()})
4140
}
4241

43-
slog.Info("Input Body", "email", input.Email)
4442
emails := strings.Split(app.config.emails, ",")
4543

46-
slog.Info("After split", "emails", emails)
47-
4844
found := slices.Contains(emails, input.Email)
4945

5046
if !found {
@@ -131,6 +127,7 @@ func (app *application) registerAdminHandler(c echo.Context) error {
131127
return c.JSON(http.StatusCreated, nil)
132128
}
133129

130+
134131
func (app *application) activateAdminHandler(c echo.Context) error {
135132

136133
var input struct {

cmd/api/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ func main() {
7373

7474
slog.Info("database connection established")
7575

76-
slog.Info("email after parsed", "emails" , cfg.emails)
77-
7876
expvar.NewString("version").Set(version)
7977

8078
expvar.Publish("goroutines", expvar.Func(func() interface{} {

0 commit comments

Comments
 (0)