code: def log_request(self, code='-', size='-'):
          
  
          if self.server.logRequests:
              BaseHTTPServer.BaseHTTPRequestHandler.log_request(self, code, size)
docs: Selectively log an accepted request.