From 3bd9f54f0f334c1ca3408aff4f14c57a538afffc Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Wed, 17 May 2017 14:04:08 -0400 Subject: [PATCH] Logs are filling with I/O messages. Sad. --- README.md | 5 +++++ pyngus/__init__.py | 2 +- pyngus/sockets.py | 2 -- setup.py | 2 +- tests/README.md | 9 +++++++++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e2a2b0..ac6fdae 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,11 @@ callback-based API for message passing. See the User Guide in the docs directory for more detail. +## Release 2.2.1 ## + +* disable the socket I/O logging - fills the debug logs with lots of + useless crap. + ## Release 2.2.0 ## * Can now use the system's default CA by specifying the 'x-ssl' option diff --git a/pyngus/__init__.py b/pyngus/__init__.py index 96f45e1..b71a76b 100644 --- a/pyngus/__init__.py +++ b/pyngus/__init__.py @@ -23,4 +23,4 @@ from pyngus.link import SenderLink, SenderEventHandler from pyngus.sockets import read_socket_input from pyngus.sockets import write_socket_output -VERSION = (2, 2, 0) # major, minor, fix +VERSION = (2, 2, 1) # major, minor, fix diff --git a/pyngus/sockets.py b/pyngus/sockets.py index 2e36376..44dafb1 100644 --- a/pyngus/sockets.py +++ b/pyngus/sockets.py @@ -70,7 +70,6 @@ def read_socket_input(connection, socket_obj): count = Connection.EOS connection.close_input() connection.close_output() - LOG.debug("Socket recv %s bytes", count) return count @@ -111,7 +110,6 @@ def write_socket_output(connection, socket_obj): raise if count > 0: - LOG.debug("Socket sent %s bytes", count) connection.output_written(count) elif data: LOG.debug("Socket closed") diff --git a/setup.py b/setup.py index 7fc7c34..fdb977c 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ import os from setuptools import setup -_VERSION = "2.2.0" # NOTE: update __init__.py too! +_VERSION = "2.2.1" # NOTE: update __init__.py too! # I hack, therefore I am (productive) Some distros (which will not be named) # don't use setup.py to install the proton python module. In this case, pip diff --git a/tests/README.md b/tests/README.md index 493de3f..8ad1e50 100644 --- a/tests/README.md +++ b/tests/README.md @@ -38,6 +38,15 @@ Total: 200000 messages; credit window: 10; proton (0, 13, 1) ### Lenovo W541 ### +v2.2.1 +------ +Python 2.7.13 (Fedora 24) +Total: 200000 messages; credit window: 10; proton (0, 17, 0) +8176 Messages/second; Latency avg: 19.116ms min: 9.241ms max: 26.693ms +Python 3.5.3 (Fedora 24) +Total: 200000 messages; credit window: 10; proton (0, 17, 0) +7081 Messages/second; Latency avg: 22.103ms min: 10.926ms max: 40.079ms + v2.1.4 ------ Python 2.7.13 (Fedora 24)