mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Remove logging from gunicorn config file
This changeset removes the logging statements in the gunicorn config file to see if that addresses the issue we are seeing. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -2,7 +2,6 @@ import multiprocessing
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import logging
|
|
||||||
from app.utils import hilite
|
from app.utils import hilite
|
||||||
import gunicorn
|
import gunicorn
|
||||||
|
|
||||||
@@ -13,8 +12,6 @@ import gunicorn
|
|||||||
workers = multiprocessing.cpu_count()
|
workers = multiprocessing.cpu_count()
|
||||||
worker_class = "gevent"
|
worker_class = "gevent"
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
logging.info(hilite("Gunicorn timeout set to 240 seconds"))
|
|
||||||
timeout = 240
|
timeout = 240
|
||||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
disable_redirect_access_to_syslog = True
|
disable_redirect_access_to_syslog = True
|
||||||
|
|||||||
Reference in New Issue
Block a user