Drel

Latest version: v0.5.1

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.3.0

Added

- drel.django.mail_admins_on_es_exception - Send Elastic Search exception info to Django ADMINS

Usage:

python
from drel import config
from drel.django import mail_admins_on_es_exception

config.ELASTIC_SEARCH_EXCEPTION_HANDLER = mail_admins_on_es_exception


Fixed

- Set ELASTIC_SEARCH_RUN_TESTS == True by default due to logging should be enabled in production by default
- Fix versions in setup.py

0.2.0

Added

- django.LoggingMiddleware: Ignore logging some requests via config.IGNORE_LOGGING_HANDLER (by default ignore non POST requests)
- es.get_index_docs: return empty list on index not found

Fixed

- Fix Elastic Search tests run on ELASTIC_SEARCH_RUN_TESTS disabled

0.1.1

Changed

- Update README

0.1.0

Added

- Django logging middleware
- Requests request/response logging
- FullRequestLog general fields: type, app, timestamp, request_id
- FullRequestLog.request = {url, data, headers}
- FullRequestLog.response = {data, status}
- FullRequestLog.user = {email} (configurable via config.USER_SERIALIZER)
- Append FullRequestLog.type to request, response fields in FullRequestLog json if FullRequestLog.type != DEFAULT_LOG_TYPE
- Drop blank fields from FullRequestLog json
- Elastic Search index generation = current week range (configurable via config.INDEX_NAME_GETTER)
- Elastic Search exception handling = raising Exception (configurable via config.ELASTIC_SEARCH_EXCEPTION_HANDLER)
- Configurable Elastic Search instance via ELASTIC_SEARCH_HOST, ELASTIC_SEARCH_PORT envs
- Configurable Elastic Search index refresh via ELASTIC_SEARCH_REFRESH_ON_INSERT env

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.