]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
In the libcurl file descriptor limit hack, log to both stderr and
authorBen Darnell <bdarnell@beaker.local>
Thu, 10 Jun 2010 21:49:57 +0000 (14:49 -0700)
committerBen Darnell <bdarnell@beaker.local>
Thu, 10 Jun 2010 21:49:57 +0000 (14:49 -0700)
logging.error since they may got to different places and one may be
more visible than the other.

tornado/httpclient.py

index 3b8d745e3fa001e5c6c5596a0971bb1c58204278..91ac123deff33f2f193b11220a7f085d41d41a26 100644 (file)
@@ -244,6 +244,7 @@ class AsyncHTTPClient(object):
             # leak or need to run more tornado processes (so that none
             # of them are handling more than 1000 simultaneous connections)
             print >> sys.stderr, "ERROR: File descriptor too high for libcurl. Exiting."
+            logging.error("File descriptor too high for libcurl. Exiting.")
             sys.exit(1)
 
         for fd in self._fds: