remove log spam for getting user information
Some checks failed
/ golint (push) Failing after 10s

This commit is contained in:
Eli Ribble 2026-05-19 22:07:52 +00:00
parent 865f11bc09
commit 44c0356bcc
No known key found for this signature in database

View file

@ -245,12 +245,10 @@ func userSuggestionRoot(ctx context.Context, user User, query_arg string) ([]*Us
return results, nil
}
func getUser(ctx context.Context, where mods.Where[*dialect.SelectQuery]) (*User, error) {
log.Info().Msg("getUser start")
user, err := models.Users.Query(
models.Preload.User.Organization(),
where,
).One(ctx, db.PGInstance.BobDB)
log.Info().Msg("getUser done, creating organization")
if err != nil {
if err.Error() == "No such user" || err.Error() == "sql: no rows in result set" {
return nil, &NoUserError{}
@ -265,7 +263,6 @@ func getUser(ctx context.Context, where mods.Where[*dialect.SelectQuery]) (*User
org := newOrganization(user.R.Organization)
u := newUser(ctx, org, user)
log.Info().Msg("done with getUser")
return &u, nil
}
func extractInitials(name string) string {