From: <umg...@us...> - 2007-06-11 13:07:16
|
Revision: 413 http://svn.sourceforge.net/pybridge/?rev=413&view=rev Author: umgangee Date: 2007-06-11 06:07:15 -0700 (Mon, 11 Jun 2007) Log Message: ----------- Start logging service before importing pybridge.server.factory, so log messages from the initialisation of pybridge are caught and displayed. Modified Paths: -------------- trunk/pybridge/bin/pybridge-server Modified: trunk/pybridge/bin/pybridge-server =================================================================== --- trunk/pybridge/bin/pybridge-server 2007-04-18 15:04:50 UTC (rev 412) +++ trunk/pybridge/bin/pybridge-server 2007-06-11 13:07:15 UTC (rev 413) @@ -1,7 +1,7 @@ #!/usr/bin/env python # PyBridge -- online contract bridge made easy. -# Copyright (C) 2004-2006 PyBridge Project. +# Copyright (C) 2004-2007 PyBridge Project. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -12,7 +12,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -71,10 +71,10 @@ from twisted.internet import reactor from twisted.python import log - from pybridge.server import factory + log.startLogging(sys.stdout) # Log to stdout. # TODO: replace with a service. - log.startLogging(sys.stdout) # Log to stdout. + from pybridge.server import factory reactor.listenTCP(PORT, factory) reactor.run() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |