equal
deleted
inserted
replaced
56 def log_error(self, format, *args): |
56 def log_error(self, format, *args): |
57 self._log_any(self.server.errorlog, format, *args) |
57 self._log_any(self.server.errorlog, format, *args) |
58 |
58 |
59 def log_message(self, format, *args): |
59 def log_message(self, format, *args): |
60 self._log_any(self.server.accesslog, format, *args) |
60 self._log_any(self.server.accesslog, format, *args) |
|
61 |
|
62 def log_request(self, code='-', size='-'): |
|
63 xheaders = [h for h in self.headers.items() if h[0].startswith('x-')] |
|
64 self.log_message('"%s" %s %s%s', |
|
65 self.requestline, str(code), str(size), |
|
66 ''.join([' %s:%s' % h for h in sorted(xheaders)])) |
61 |
67 |
62 def do_write(self): |
68 def do_write(self): |
63 try: |
69 try: |
64 self.do_hgweb() |
70 self.do_hgweb() |
65 except socket.error, inst: |
71 except socket.error, inst: |