remove debug prints

This commit is contained in:
sam 2023-09-09 04:45:04 +02:00
parent c780470afe
commit cb563bc00b
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1

View file

@ -58,13 +58,9 @@ func (s *Server) patchMember(w http.ResponseWriter, r *http.Request) error {
} else { } else {
id, err := common.ParseSnowflake(chi.URLParam(r, "memberRef")) id, err := common.ParseSnowflake(chi.URLParam(r, "memberRef"))
if err != nil { if err != nil {
log.Debugf("%v/%v is not valid snowflake", chi.URLParam(r, "memberRef"), id)
return server.APIError{Code: server.ErrMemberNotFound} return server.APIError{Code: server.ErrMemberNotFound}
} }
log.Debugf("%v/%v is valid snowflake", chi.URLParam(r, "memberRef"), id)
m, err = s.DB.MemberBySnowflake(ctx, common.MemberID(id)) m, err = s.DB.MemberBySnowflake(ctx, common.MemberID(id))
if err != nil { if err != nil {
if err == db.ErrMemberNotFound { if err == db.ErrMemberNotFound {