forked from WordPress/openverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gunicorn.conf.py
44 lines (44 loc) · 1.34 KB
/
gunicorn.conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
capture_output = True
accesslog = "-"
errorlog = "-"
chdir = "./ingestion_server/"
timeout = 120
reload = True
logconfig_dict = {
# NOTE: Most of this is inherited from the default configuration
# https://github.com/benoitc/gunicorn/blob/cc2e3835784542e65886cd27f64d444309fbaad0/gunicorn/glogging.py#L48-L86
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"generic": {
"format": "[%(asctime)s - %(name)s - %(lineno)3d][%(levelname)s] %(message)s", # noqa: E501
},
},
"root": {"level": "INFO", "handlers": ["console"]},
"loggers": {
"gunicorn.error": {
"level": "DEBUG",
"handlers": ["console"],
"propagate": False, # Prevents default handler from also logging this
"qualname": "gunicorn.error",
},
"gunicorn.access": {
"level": "INFO",
"handlers": ["console"],
"propagate": False, # Prevents default handler from also logging this
"qualname": "gunicorn.access",
},
"": {
"level": "INFO",
"handlers": ["console"],
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "generic",
"stream": "ext://sys.stdout",
},
},
}
loglevel = "debug"