-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
40 lines (39 loc) · 930 Bytes
/
constants.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
TEMP_DIR: str = "/server/temp"
LOGGING_CONFIG: dict = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': '%(asctime)s %(levelname)s: %(message)s'
},
'simple': {
'format': '%(levelname)s: %(message)s'
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose'
},
},
'loggers': {
'uvicorn.error': {
'propagate': False,
'handlers': ['console'],
},
'gunicorn.error': {
'propagate': False,
'handlers': ['console'],
},
'app': {
'handlers': ['console'],
'propagate': False,
'level': 'INFO',
}
},
'root': {
'handlers': ['console'],
'level': 'INFO',
},
}