From d290ad11aa41d86600d3848bf7a2bb31a6d06ed8 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 10 Mar 2022 11:21:38 +0900 Subject: [PATCH] Output log from gunicorn --- backend/cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/cli.py b/backend/cli.py index 20476164..b60cebab 100644 --- a/backend/cli.py +++ b/backend/cli.py @@ -49,7 +49,13 @@ def run_on_nix(args): def load(self): return gunicorn.util.import_app("config.wsgi") - options = {"bind": "%s:%s" % ("0.0.0.0", args.port), "workers": number_of_workers(), "chdir": base} + options = { + "bind": "%s:%s" % ("0.0.0.0", args.port), + "workers": number_of_workers(), + "chdir": base, + "capture_output": True, + "loglevel": "debug", + } StandaloneApplication(options).run()