debuggers.hg

view tools/python/xen/xend/server/SrvXendLog.py @ 4672:d781b9d08e80

bitkeeper revision 1.1327.2.4 (426918a34Af7gihN8mTkq-P3KrAZXg)

Remove twisted from save/migrate handling.
This needs to use threads, so add thread support for
http server requests.

Signed-off-by: Mike Wray <mike.wray@hp.com>
author mjw@wray-m-3.hpl.hp.com
date Fri Apr 22 15:30:43 2005 +0000 (2005-04-22)
parents a838a908e38e
children 369e382b2f81
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 return self.logfile.render(req)