From 02d990081730eba462df6fe80b82376bde775221 Mon Sep 17 00:00:00 2001 From: tamir-michaeli Date: Tue, 18 Jan 2022 13:57:11 +0200 Subject: [PATCH 1/2] metadata and readme updates --- .travis.yml | 2 ++ README.md | 14 ++++++++++---- setup.py | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ec70e87..d118dbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,8 @@ matrix: env: TOXENV=py37 - python: 3.8 env: TOXENV=py38 + - python: 3.9 + env: TOXENV=py39 install: - pip install tox diff --git a/README.md b/README.md index e20590f..0848f7e 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,9 @@ LOGGING = { 'formatter': 'logzioFormat', 'token': '<>', 'logs_drain_timeout': 5, - 'url': 'https://<>:8071' + 'url': 'https://<>:8071', + 'retries_no': 4, + 'retry_timeout': 2, } }, 'loggers': { @@ -209,16 +211,20 @@ LOGGING = { Please note that if you are using `python 3.8` it is preferred to use the `logging.config.dictConfig` method, as mentioned in [python's documentation](https://docs.python.org/3/library/logging.config.html#configuration-file-format). ## Release Notes +- 3.1.0 + - Bug fixes + - Retry number and timeout is now configurable - 3.0.0 - Deprecated `python2.7` & `python3.4` - Changed log levels on `_flush_queue()` method (@hilsenrat) + +
+ Expand to check old versions + - 2.0.15 - Added flusher decorator for serverless platforms(@mcmasty) - Add support for `python3.7` and `python3.8` -
- Expand to check old versions - - 2.0.13 - Add support for `pypy` and `pypy3`(@rudaporto-olx) - Add timeout for requests.post() (@oseemann) diff --git a/setup.py b/setup.py index 4e70646..fe0e999 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name="logzio-python-handler", - version='3.0.0', + version='3.1.0', description="Logging handler to send logs to your Logz.io account with bulk SSL", keywords="logging handler logz.io bulk https", author="roiravhon", From 130d762766cc0b54974a7c1b164bda53ba6c5983 Mon Sep 17 00:00:00 2001 From: tamir-michaeli Date: Tue, 18 Jan 2022 14:29:33 +0200 Subject: [PATCH 2/2] added new parameters to description arguments description --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0848f7e..bad528b 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ format={"additional_field": "value"} - Debug flag. Set to True, will print debug messages to stdout. (defaults to "False") - Backup logs flag. Set to False, will disable the local backup of logs in case of failure. (defaults to "True") - Network timeout, in seconds, int or float, for sending the logs to logz.io. (defaults to 10) + - Retries number (retry_no), in seconds (defaults to 4). + - Retry timeout (retry_timeout) in seconds (defaults to 2). Please note, that you have to configure those parameters by this exact order. i.e. you cannot set Debug to true, without configuring all of the previous parameters as well.