From 29e78fa9415fa744dd246c240fa68609271a81fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 13 Nov 2024 14:24:07 +0100 Subject: [PATCH] argumentify added --- CHANGELOG.md | 5 +++++ coolamqp/__init__.py | 2 +- coolamqp/argumentify.py | 2 -- docs/index.rst | 8 ++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 470e793..845d169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Previous release notes are hosted on [GitHub](https://github.com/smok-serwis/coolamqp/releases). Since v1.3.2 they'll be put here and in release description. +v2.0.1 +====== + +* removed extra logging from argumentify + v2.0.0 ====== diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index afced14..0075adf 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1 +1 @@ -__version__ = '2.0.0' +__version__ = '2.0.1a1' diff --git a/coolamqp/argumentify.py b/coolamqp/argumentify.py index 51aaed7..4709d57 100644 --- a/coolamqp/argumentify.py +++ b/coolamqp/argumentify.py @@ -24,7 +24,6 @@ def toutf8(q): def argumentify(arguments): if arguments is None: return [] - logger.warning('Input is %s' % (arguments, )) # Was it argumented already? # if isinstance(arguments, list): # if len(arguments) >= 1: @@ -37,7 +36,6 @@ def argumentify(arguments): for key, value in arguments.items(): key = tobytes(key) args.append((key, (value, get_type_for(value)))) - logger.warning('Output is %s', (args, 'F')) return (args, 'F') elif len(arguments[0]) == 2: for key, value in arguments: diff --git a/docs/index.rst b/docs/index.rst index f669413..5c924b4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -14,6 +14,14 @@ Welcome to CoolAMQP's documentation! reference frames +It is highly recommended to set logging level of CoolAMQP to error: + +.. code-block:: python + + import logging + logging.getLogger('coolamqp').setLevel(logging.ERROR) + + Quick FAQ ========= -- GitLab