A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(user): remove user center log
LinkinStars389d8551f2dc
diff --git a/internal/repo/user/user_repo.go b/internal/repo/user/user_repo.goindex 568ebf90..afe39410 100644--- a/internal/repo/user/user_repo.go+++ b/internal/repo/user/user_repo.go@@ -291,10 +291,6 @@ func tryToDecorateUserInfoFromUserCenter(ctx context.Context, data *data.Data, oreturn errors.BadRequest(reason.UserNotFound).WithError(err).WithStack()}- // In general, usernames should be guaranteed unique by the User Center plugin, so there are no inconsistencies.- if original.Username != userCenterBasicUserInfo.Username {- log.Warnf("user %s username is inconsistent with user center", original.ID)- }decorateByUserCenterUser(original, userCenterBasicUserInfo)return nil}