diff options
| author | Frederick Muriuki Muriithi | 2024-08-07 17:45:34 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2024-08-07 17:45:34 -0500 |
| commit | 2fe7a65b74992c311f6fdfa2aaf2aed888213171 (patch) | |
| tree | 466d68d3ab7dad632dc50e4e2358df5b0ca40e91 | |
| parent | 1ccbaf801a83b15c0a99bdfc2155869b26260226 (diff) | |
| download | gn-auth-2fe7a65b74992c311f6fdfa2aaf2aed888213171.tar.gz | |
Log out user registration errors at the `ERROR` log-level.
| -rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index 8135ed3..4530522 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -187,11 +187,11 @@ def register_user() -> Response: redirect_uri=form["redirect_uri"]) return jsonify(asdict(user)) except sqlite3.IntegrityError as sq3ie: - current_app.logger.debug(traceback.format_exc()) + current_app.logger.error(traceback.format_exc()) raise UserRegistrationError( "A user with that email already exists") from sq3ie except EmailNotValidError as enve: - current_app.logger.debug(traceback.format_exc()) + current_app.logger.error(traceback.format_exc()) raise(UserRegistrationError(f"Email Error: {str(enve)}")) from enve raise Exception( |
