svn commit: r224557 - projects/portbuild/qmanager
Mark Linimon
linimon at FreeBSD.org
Mon Aug 1 02:56:03 UTC 2011
Author: linimon (doc,ports committer)
Date: Mon Aug 1 02:56:02 2011
New Revision: 224557
URL: http://svn.freebsd.org/changeset/base/224557
Log:
Touch up some of the debug stuff.
Modified:
projects/portbuild/qmanager/qmanagerhandler.py
Modified: projects/portbuild/qmanager/qmanagerhandler.py
==============================================================================
--- projects/portbuild/qmanager/qmanagerhandler.py Sun Jul 31 23:09:11 2011 (r224556)
+++ projects/portbuild/qmanager/qmanagerhandler.py Mon Aug 1 02:56:02 2011 (r224557)
@@ -4,7 +4,7 @@ import SocketServer, threading, freebsd,
from qmanagerclient import *
from acl import *
-DEBUG=False
+DEBUG_HANDLER = False
class ServerReplyException(Exception):
pass
@@ -140,13 +140,13 @@ class UNIXhandler(SocketServer.StreamReq
conn = QManagerServerConn(self.rfile, self.wfile, self.event)
try:
- if DEBUG:
+ if DEBUG_HANDLER:
print "at UNIXhandler.handle()"
(conn.cmd, conn.args) = conn.receive()
- if DEBUG:
+ if DEBUG_HANDLER:
print "past conn.receive() for " + conn.cmd + " and " + str( conn.args )
(conn.uid, conn.gids) = freebsd.getpeerid(self.request)
- if DEBUG:
+ if DEBUG_HANDLER:
print "past freebsd.getpeerid"
if conn.uid == 0:
# Allow root to override uid/gids, when proxying for a user
@@ -159,14 +159,14 @@ class UNIXhandler(SocketServer.StreamReq
except KeyError, TypeError:
pass
except Exception, e:
- if DEBUG:
+ if DEBUG_HANDLER:
print "UNIXhandler.handle(): exception: " + str( e )
conn.send(401) # XXX other errors too
return
self.server.wqueue.put(conn)
- if DEBUG:
+ if DEBUG_HANDLER:
print "past wqueue.put() for " + conn.cmd + " and " + str( conn.args )
self.event.wait() # Don't close socket until the command finishes
- if DEBUG:
+ if DEBUG_HANDLER:
print "past event.wait() for " + conn.cmd + " and " + str( conn.args )
More information about the svn-src-projects
mailing list