From 39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 10 Jun 2010 14:49:57 -0700 Subject: [PATCH] In the libcurl file descriptor limit hack, log to both stderr and logging.error since they may got to different places and one may be more visible than the other. --- tornado/httpclient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 3b8d745e3..91ac123de 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -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: -- 2.47.2