Browse Source

Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt).

pull/784/head
JackDandy 9 years ago
parent
commit
7dcf2022e3
  1. 3
      lib/tornado/http1connection.py
  2. 1
      lib/tornado/iostream.py

3
lib/tornado/http1connection.py

@ -726,7 +726,8 @@ class HTTP1ServerConnection(object):
# This exception was already logged. # This exception was already logged.
conn.close() conn.close()
return return
except Exception: except Exception as e:
if 1 != e.errno:
gen_log.error("Uncaught exception", exc_info=True) gen_log.error("Uncaught exception", exc_info=True)
conn.close() conn.close()
return return

1
lib/tornado/iostream.py

@ -648,6 +648,7 @@ class BaseIOStream(object):
except UnsatisfiableReadError: except UnsatisfiableReadError:
raise raise
except Exception as e: except Exception as e:
if 1 != e.errno:
gen_log.warning("error on read: %s" % e) gen_log.warning("error on read: %s" % e)
self.close(exc_info=True) self.close(exc_info=True)
return return

Loading…
Cancel
Save