Skip to content

Commit

Permalink
fix(log): remove redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Aug 21, 2024
1 parent 4d7761d commit c7bea13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ func (a *AuthService) GetSessionUser(r *http.Request) (goth.User, error) {
return goth.User{}, fmt.Errorf("user is unauthenticated! %v", user)
}

log.Printf("User session found: %v", user)

return user.(goth.User), nil
}

Expand Down Expand Up @@ -91,7 +89,7 @@ func RequireAuth(handlerFunc http.HandlerFunc, auth *AuthService) http.HandlerFu
return
}

log.Printf("Authenticated user: %v", session.Name)
log.Printf("Authenticated user: %v", session.Email)
handlerFunc(w, r)
}
}
Expand Down

0 comments on commit c7bea13

Please sign in to comment.