Change Python servers to use the standard logging module.
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:38 +0000 (22:55 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:38 +0000 (22:55 +0000)
commitb04df765b5c9fe1b8fb6ded0ed2750188278fe50
treef17c1607c606385270d72107893a7941fe8fa081
parentbcaa2ad0d6799066ed680f53051c469e4f58771b
Change Python servers to use the standard logging module.

Previously Thrift was using `print` to report errors.  Thrift is infrastructure
and should not impose its error logging mechanism on the apps that use it.  For
example, [elided] uses the logging module to send logs to a particular file.

I ran the unit test.  That exercises most of the error handling routines.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666364 13f79535-47bb-0310-9956-ffa450edef68
lib/py/src/server/TServer.py