From ca80852bc2904465d2a8ac94803b0f3f609c3a4b Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 22 May 2013 10:29:13 -0700 Subject: [PATCH] Don't log common connection problems by default. --- test/test.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/test.py b/test/test.py index 25558b407..49a870b86 100644 --- a/test/test.py +++ b/test/test.py @@ -154,12 +154,15 @@ class TestHandlerBase(BaseHTTPRequestHandler): except socket.error, v: if v[0] == errno.ECONNRESET: # Ignoring connection reset by peer exceptions - print 'Detected connection reset' + if VERBOSE: + print 'Detected connection reset' elif v[0] == errno.EPIPE: - print 'Detected remote peer disconnected' + if VERBOSE: + print 'Detected remote peer disconnected' elif v[0] == 10053: - print 'An established connection was aborted by the' \ - ' software in your host machine' + if VERBOSE: + print 'An established connection was aborted by the' \ + ' software in your host machine' else: raise