MCPcopy Index your code
hub / github.com/python/cpython / log_error

Method log_error

Lib/http/server.py:588–600  ·  view source on GitHub ↗

Log an error. This is called when a request cannot be fulfilled. By default it passes the message on to log_message(). Arguments are the same as for log_message(). XXX This should go to the separate error log.

(self, format, *args)

Source from the content-addressed store, hash-verified

586 self.requestline, str(code), str(size))
587
588 def log_error(self, format, *args):
589 """Log an error.
590
591 This is called when a request cannot be fulfilled. By
592 default it passes the message on to log_message().
593
594 Arguments are the same as for log_message().
595
596 XXX This should go to the separate error log.
597
598 """
599
600 self.log_message(format, *args)
601
602 # https://en.wikipedia.org/wiki/List_of_Unicode_characters#Control_codes
603 _control_char_table = str.maketrans(

Callers 2

handle_one_requestMethod · 0.95
send_errorMethod · 0.95

Calls 1

log_messageMethod · 0.95

Tested by

no test coverage detected