From 22d7bb2965dd4a67ef085e65c269727fddeab463 Mon Sep 17 00:00:00 2001 From: Arjun Srinivasan <69502+asriniva@users.noreply.github.com> Date: Fri, 23 Apr 2021 10:20:25 -0700 Subject: [PATCH] Change gunicorn loglevel to error (#122) --- src/functions_framework/_http/gunicorn.py | 1 + tests/test_http.py | 1 + 2 files changed, 2 insertions(+) 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 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"]