diff --git a/CHANGES.md b/CHANGES.md index c870191e..c79deac6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ * Update unidecode library 0.04.11 to 0.04.18 (fd57cbf) * Update xmltodict library 0.9.2 (579a005) to 0.9.2 (eac0031) * Update Tornado Web Server 4.3.dev1 (1b6157d) to 4.4.dev1 (c2b4d05) +* Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt) ### 0.11.0 (2016-01-10 22:30:00 UTC) diff --git a/lib/tornado/http1connection.py b/lib/tornado/http1connection.py index 71f0790d..29c6cd9a 100644 --- a/lib/tornado/http1connection.py +++ b/lib/tornado/http1connection.py @@ -711,8 +711,9 @@ class HTTP1ServerConnection(object): # This exception was already logged. conn.close() return - except Exception: - gen_log.error("Uncaught exception", exc_info=True) + except Exception as e: + if 1 != e.errno: + gen_log.error("Uncaught exception", exc_info=True) conn.close() return if not ret: diff --git a/lib/tornado/iostream.py b/lib/tornado/iostream.py index 4e304f89..7f071421 100644 --- a/lib/tornado/iostream.py +++ b/lib/tornado/iostream.py @@ -648,7 +648,8 @@ class BaseIOStream(object): except UnsatisfiableReadError: raise except Exception as e: - gen_log.warning("error on read: %s" % e) + if 1 != e.errno: + gen_log.warning("error on read: %s" % e) self.close(exc_info=True) return if pos is not None: