Remove chatty debug logs
This commit is contained in:
parent
97ec0667a5
commit
1aba99f732
1 changed files with 0 additions and 2 deletions
|
|
@ -237,12 +237,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("begin querying for user ...")
|
||||
user, err := models.Users.Query(
|
||||
models.Preload.User.Organization(),
|
||||
where,
|
||||
).One(ctx, db.PGInstance.BobDB)
|
||||
log.Info().Msg("done querying for user.")
|
||||
if err != nil {
|
||||
log.Info().Err(err).Msg("getUser failed")
|
||||
if err.Error() == "No such user" || err.Error() == "sql: no rows in result set" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue