From 50337817920069224cccbc455012cdb770fd442a Mon Sep 17 00:00:00 2001 From: asriniva <69502+asriniva@users.noreply.github.com> Date: Thu, 22 Apr 2021 12:46:23 -0700 Subject: [PATCH 1/2] Change gunicorn loglevel to error. --- src/functions_framework/_http/gunicorn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions_framework/_http/gunicorn.py b/src/functions_framework/_http/gunicorn.py index 163b5317..48714284 100644 --- a/src/functions_framework/_http/gunicorn.py +++ b/src/functions_framework/_http/gunicorn.py @@ -22,6 +22,7 @@ def __init__(self, app, host, port, debug, **options): "workers": 1, "threads": 8, "timeout": 0, + "loglevel": "error", } self.options.update(options) self.app = app From 108c9188867f6c028e66277494078185ed00bd78 Mon Sep 17 00:00:00 2001 From: asriniva <69502+asriniva@users.noreply.github.com> Date: Thu, 22 Apr 2021 13:12:36 -0700 Subject: [PATCH 2/2] Fix test --- tests/test_http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_http.py b/tests/test_http.py index 6590566a..e45dbab9 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -99,6 +99,7 @@ def test_gunicorn_application(debug): "workers": 1, "threads": 8, "timeout": 0, + "loglevel": "error", } assert gunicorn_app.cfg.bind == ["1.2.3.4:1234"]