debuggers.hg

view tools/python/xen/xend/server/SrvXendLog.py @ 4655:a838a908e38e

bitkeeper revision 1.1327.2.2 (4267a9b3MhPpljnjQ5IbfLdzcW2K3w)

Remove twisted from the HTTP server and replace with a
threaded server. Add classes to provide tcp and unix servers
using threads instead of twisted. Remove use of twisted from
the consoles, event server and HTTP resources

Signed-off-by: Mike Wray <mike.wray@hp.com>
author mjw@wray-m-3.hpl.hp.com
date Thu Apr 21 13:25:07 2005 +0000 (2005-04-21)
parents dae98734f12e
children d781b9d08e80
line source
1 # Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
3 from xen.web import static
5 from xen.xend import XendRoot
7 from SrvDir import SrvDir
9 class SrvXendLog(SrvDir):
10 """Xend log.
11 """
13 def __init__(self):
14 SrvDir.__init__(self)
15 logging = XendRoot.instance().get_logging()
16 self.logfile = static.File(logging.getLogFilename(), defaultType="text/plain")
17 self.logfile.type = "text/plain"
18 self.logfile.encoding = None
20 def render_GET(self, req):
21 try:
22 return self.logfile.render(req)
23 except Exception, ex:
24 self._perform_err(ex, 'log', req)