Michal Kobus | e7589f7 | 2020-09-11 14:29:37 +0200 | [diff] [blame] | 1 | import os |
| 2 | |
Michal Kobus | 819cf02 | 2018-11-29 16:39:22 +0100 | [diff] [blame] | 3 | VERSION = 'development' |
| 4 | |
Mateusz Matuszkowiak | 2820c66 | 2018-11-21 12:07:25 +0100 | [diff] [blame] | 5 | LOGGING = { |
| 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ński | 3861b93 | 2021-05-27 14:01:44 +0200 | [diff] [blame^] | 16 | logger: { |
| 17 | 'level': os.getenv('LOGGER_LEVEL', 'INFO').upper(), |
Mateusz Matuszkowiak | 2820c66 | 2018-11-21 12:07:25 +0100 | [diff] [blame] | 18 | 'handlers': ['wsgi'] |
Ksawery Dziekoński | 3861b93 | 2021-05-27 14:01:44 +0200 | [diff] [blame^] | 19 | } for logger in ['sf_notifier.server', 'sf_notifier.salesforce.client'] |
Mateusz Matuszkowiak | 2820c66 | 2018-11-21 12:07:25 +0100 | [diff] [blame] | 20 | } |
| 21 | } |
| 22 | |
| 23 | SIMPLE_SETTINGS = { |
| 24 | 'OVERRIDE_BY_ENV': True, |
| 25 | 'CONFIGURE_LOGGING': True, |
| 26 | } |
| 27 | |
Michal Kobus | e7589f7 | 2020-09-11 14:29:37 +0200 | [diff] [blame] | 28 | ADD_LINKS = os.environ.get('SF_NOTIFIER_ADD_LINKS', |
| 29 | False) in ['true', 'True', True] |
| 30 | |
Mateusz Matuszkowiak | 2820c66 | 2018-11-21 12:07:25 +0100 | [diff] [blame] | 31 | SF_CONFIG = {} |