blob: dfc9639a007067445ef54af67c5d343972a58afb [file] [log] [blame]
Michal Kobuse7589f72020-09-11 14:29:37 +02001import os
2
Michal Kobus819cf022018-11-29 16:39:22 +01003VERSION = 'production'
4
Michal Kobus17726ae2018-11-27 12:59:55 +01005LOGGING = {
6 'version': 1,
7 'formatters': {'default': {
8 'format': '[%(asctime)s] %(levelname)s in %(module)s: %(message)s',
9 }},
10 'handlers': {
11 'wsgi': {
12 'class': 'logging.StreamHandler',
13 'stream': 'ext://flask.logging.wsgi_errors_stream',
14 'formatter': 'default'
15 },
16 'file': {
17 'class': 'logging.handlers.RotatingFileHandler',
18 'formatter': 'default',
19 'filename': '/var/log/sf-notifier/sfnotifier.log',
20 'mode': 'a',
21 'maxBytes': 10485760,
22 'backupCount': 5
23 }
24 },
25 'loggers': {
26 'sf_notifier.server': {
Michal Kobusafbf4d02018-11-28 14:18:05 +010027 'level': 'INFO',
Michal Kobus17726ae2018-11-27 12:59:55 +010028 'handlers': ['file', 'wsgi']
29 },
30 'sf_notifier.salesforce.client': {
Michal Kobusafbf4d02018-11-28 14:18:05 +010031 'level': 'INFO',
Michal Kobus17726ae2018-11-27 12:59:55 +010032 'handlers': ['file', 'wsgi']
33 }
34 }
35}
36
37SIMPLE_SETTINGS = {
38 'OVERRIDE_BY_ENV': True,
39 'CONFIGURE_LOGGING': True,
40}
41
Michal Kobuse7589f72020-09-11 14:29:37 +020042ADD_LINKS = os.environ.get('SF_NOTIFIER_ADD_LINKS',
43 False) in ['true', 'True', True]
44
Michal Kobus17726ae2018-11-27 12:59:55 +010045SF_CONFIG = {}