Skip to content

Commit 22d7bb2

Browse files
authored
Change gunicorn loglevel to error (#122)
1 parent 6277270 commit 22d7bb2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/functions_framework/_http/gunicorn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def __init__(self, app, host, port, debug, **options):
2222
"workers": 1,
2323
"threads": 8,
2424
"timeout": 0,
25+
"loglevel": "error",
2526
}
2627
self.options.update(options)
2728
self.app = app

tests/test_http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def test_gunicorn_application(debug):
9999
"workers": 1,
100100
"threads": 8,
101101
"timeout": 0,
102+
"loglevel": "error",
102103
}
103104

104105
assert gunicorn_app.cfg.bind == ["1.2.3.4:1234"]

0 commit comments

Comments
 (0)