Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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