def log_request(self, code='-', size='-'):
    self.log_message('"%s" %s %s', self.requestline, str(code), str(size))

def log_error(self, format, *args):
    self.log_message(format, *args)
Как отключить SimpleHTTPServer?