From: Ben Darnell Date: Thu, 10 Jun 2010 21:49:57 +0000 (-0700) Subject: In the libcurl file descriptor limit hack, log to both stderr and X-Git-Tag: v1.0.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09;p=thirdparty%2Ftornado.git 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. --- 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: