mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Merge pull request #3293 from brendandahl/less-log
Don't log common connection problems by default.
This commit is contained in:
commit
26b1636a9b
1 changed files with 7 additions and 4 deletions
|
@ -154,10 +154,13 @@ class TestHandlerBase(BaseHTTPRequestHandler):
|
||||||
except socket.error, v:
|
except socket.error, v:
|
||||||
if v[0] == errno.ECONNRESET:
|
if v[0] == errno.ECONNRESET:
|
||||||
# Ignoring connection reset by peer exceptions
|
# Ignoring connection reset by peer exceptions
|
||||||
|
if VERBOSE:
|
||||||
print 'Detected connection reset'
|
print 'Detected connection reset'
|
||||||
elif v[0] == errno.EPIPE:
|
elif v[0] == errno.EPIPE:
|
||||||
|
if VERBOSE:
|
||||||
print 'Detected remote peer disconnected'
|
print 'Detected remote peer disconnected'
|
||||||
elif v[0] == 10053:
|
elif v[0] == 10053:
|
||||||
|
if VERBOSE:
|
||||||
print 'An established connection was aborted by the' \
|
print 'An established connection was aborted by the' \
|
||||||
' software in your host machine'
|
' software in your host machine'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue