parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

feat: Add customizable log level for 'username already exists' error

Open KrishDave1 opened this issue 1 year ago • 17 comments
trafficstars

Pull Request

Issue

#9329

Closes: #9329

Approach

So I have created a new interface LogEventsOptions interface in src/Options/index.js to incorporate the custom logEvents option in case of username already taken error.

Then I have modified the RestWrite.js file to check for and apply the custom log level when a username already exists error occurs.I have also added documentation for the new option in src/Options/docs.js.

I have also included a new test case in spec/ParseUser.spec.js to verify the functionality of the custom log level.

If any changes are required , please inform me , I will do it.

Tasks

  • [x] Add tests
  • [x] Add changes to documentation (guides, repository pages, code comments)

KrishDave1 avatar Oct 10 '24 21:10 KrishDave1