-
Notifications
You must be signed in to change notification settings - Fork 9
/
pupa_settings.py
35 lines (33 loc) · 1.13 KB
/
pupa_settings.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
import os
DATABASE_URL = os.environ.get('DATABASE_URL', 'postgis://localhost/pupa')
os.environ['OCD_DIVISION_CSV'] = os.environ.get('OCD_DIVISION_CSV', os.path.join(os.path.abspath(os.path.dirname(__file__)), 'scrapers/country-{}.csv'))
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': "%(asctime)s %(levelname)s %(name)s: %(message)s",
'datefmt': '%H:%M:%S'
}
},
'handlers': {
'default': {'level': 'DEBUG',
'class': 'logutils.testing.TestHandler',
'matcher': 'logutils.testing.Matcher',
'formatter': 'standard'},
},
'loggers': {
'': {
'handlers': ['default'], 'level': 'WARN', 'propagate': True # DEBUG
},
'scrapelib': {
'handlers': ['default'], 'level': 'WARN', 'propagate': False # INFO
},
'requests': {
'handlers': ['default'], 'level': 'WARN', 'propagate': False
},
'boto3': {
'handlers': ['default'], 'level': 'WARN', 'propagate': False
},
},
}