aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-07 17:45:34 -0500
committerFrederick Muriuki Muriithi2024-08-07 17:45:34 -0500
commit2fe7a65b74992c311f6fdfa2aaf2aed888213171 (patch)
tree466d68d3ab7dad632dc50e4e2358df5b0ca40e91 /gn_auth/auth
parent1ccbaf801a83b15c0a99bdfc2155869b26260226 (diff)
downloadgn-auth-2fe7a65b74992c311f6fdfa2aaf2aed888213171.tar.gz
Log out user registration errors at the `ERROR` log-level.
Diffstat (limited to 'gn_auth/auth')
-rw-r--r--gn_auth/auth/authorisation/users/views.py4
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(