blob: 876a671c23af9d3addfebf3a7ef0eeb4c2f1b9b8 [file] [log] [blame]
Michal Kobuse7589f72020-09-11 14:29:37 +02001import os
2
Michal Kobus819cf022018-11-29 16:39:22 +01003VERSION = 'development'
4
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +01005LOGGING = {
6 'version': 1,
7 'formatters': {'default': {
8 'format': '[%(asctime)s] %(levelname)s in %(module)s: %(message)s',
9 }},
10 'handlers': {'wsgi': {
11 'class': 'logging.StreamHandler',
12 'stream': 'ext://flask.logging.wsgi_errors_stream',
13 'formatter': 'default'
14 }},
15 'loggers': {
Ksawery Dziekoński3861b932021-05-27 14:01:44 +020016 logger: {
17 'level': os.getenv('LOGGER_LEVEL', 'INFO').upper(),
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010018 'handlers': ['wsgi']
Ksawery Dziekoński3861b932021-05-27 14:01:44 +020019 } for logger in ['sf_notifier.server', 'sf_notifier.salesforce.client']
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010020 }
21}
22
23SIMPLE_SETTINGS = {
24 'OVERRIDE_BY_ENV': True,
25 'CONFIGURE_LOGGING': True,
26}
27
Michal Kobuse7589f72020-09-11 14:29:37 +020028ADD_LINKS = os.environ.get('SF_NOTIFIER_ADD_LINKS',
29 False) in ['true', 'True', True]
30
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010031SF_CONFIG = {}