Skip to content

Commit

Permalink
debug: check if there's an exception being raised silently
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Jul 13, 2020
1 parent 851b4c3 commit 115d88f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bench/config/production_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ def setup_production(user, bench_path='.', yes=False):
generate_systemd_config(bench_path=bench_path, user=user, yes=yes)
else:
print("Setting Up supervisor...")
update_supervisord_config(user=user, yes=yes)
try:
update_supervisord_config(user=user, yes=yes)
except Exception:
import sys, traceback
exc_type, exc_value, exc_tb = sys.exc_info()
trace_list = traceback.format_exception(exc_type, exc_value, exc_tb)
body = "".join(str(t) for t in trace_list)
print(body)

generate_supervisor_config(bench_path=bench_path, user=user, yes=yes)

print("Setting Up NGINX...")
Expand Down

0 comments on commit 115d88f

Please sign in to comment.