def log_request(self, *args, **kwargs):
     """
     Override from BaseHTTPRequestHandler, so we can respect 
       the ProgressServer's disable_logging setting.
     """
     if not self.server.disable_logging:
         BaseHTTPRequestHandler.log_request(self, *args, **kwargs )
示例#2
0
    def send_response(self, code, message=None, size='-'):
        """
        Send the response header and log the response code.

        Also send two standard headers with the server software
        version and the current date.

        | **param** code (int)
        | **param** message (str)
        | **param** size (str)
        """
        BaseHTTPRequestHandler.send_response(self, code, message)
        BaseHTTPRequestHandler.log_request(self, code, size)
示例#3
0
    def send_response(self, code, message=None, size="-"):
        """
        Send the response header and log the response code.

        Also send two standard headers with the server software
        version and the current date.

        | **param** code (int)
        | **param** message (str)
        | **param** size (str)
        """
        BaseHTTPRequestHandler.send_response(self, code, message)
        BaseHTTPRequestHandler.log_request(self, code, size)
示例#4
0
 def log_request(code=0, size=0):
     if VERBOSE:
         BaseHTTPRequestHandler.log_request(code, size)
示例#5
0
文件: test.py 项目: printbox/pdf.js
 def log_request(code=0, size=0):
     if VERBOSE:
         BaseHTTPRequestHandler.log_request(code, size)
示例#6
0
 def log_request(self, format, *args):
     if support.verbose:
         BaseHTTPRequestHandler.log_request(self, format, *args)
示例#7
0
 def log_request(self, format, *args):
     if support.verbose:
         BaseHTTPRequestHandler.log_request(self, format, *args)
示例#8
0
 def log_request(self, code='-', size='-'):
     if not code or code != 200:
         return BaseHTTPRequestHandler.log_request(self, code, size)
     pass
示例#9
0
 def log_request(self, code='-', size='-'):
     if not code or code != 200:
         return BaseHTTPRequestHandler.log_request(self, code, size)
     pass
示例#10
0
	def log_request(self, code=None, size=None):
		return BaseHTTPRequestHandler.log_request(self, code, size)
示例#11
0
 def log_request(self, code=None, size=None):
     return BaseHTTPRequestHandler.log_request(self, code, size)
示例#12
0
 def log_request(self, *args, **kwargs):
     """
     Override from BaseHTTPRequestHandler, so we can respect the H5MockServer's disable_logging setting.
     """
     if not self.server.disable_logging:
         BaseHTTPRequestHandler.log_request(self, *args, **kwargs)