Skip to content

Commit

Permalink
Add logging statement for failed password reset validation logic (#9087)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Dec 1, 2023
1 parent 1a633fd commit 5857833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/entrypoint-uwsgi-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd /app

DD_UWSGI_LOGFORMAT_DEFAULT='[pid: %(pid)|app: -|req: -/-] %(addr) (%(dd_user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))'

if [ ${DD_DEBUG} == "True" ]; then
if [ ${DD_DEBUG} = "True" ]; then
echo "Debug mode enabled, reducing # of processes and threads to 1"
DD_UWSGI_NUM_OF_PROCESSES=1
DD_UWSGI_NUM_OF_THREADS=1
Expand Down
3 changes: 2 additions & 1 deletion dojo/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ def clean(self):
if isinstance(connection, EmailBackend):
connection.open()
connection.close()
except Exception:
except Exception as e:
logger.error(f"SMTP Server Connection Failure: {str(e)}")
raise ValidationError("SMTP server is not configured correctly...")


Expand Down

0 comments on commit 5857833

Please sign in to comment.