MCPcopy Index your code
hub / github.com/RustPython/RustPython / log_error

Method log_error

Lib/http/server.py:616–628  ·  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

614 self.requestline, str(code), str(size))
615
616 def log_error(self, format, *args):
617 """Log an error.
618
619 This is called when a request cannot be fulfilled. By
620 default it passes the message on to log_message().
621
622 Arguments are the same as for log_message().
623
624 XXX This should go to the separate error log.
625
626 """
627
628 self.log_message(format, *args)
629
630 # https://en.wikipedia.org/wiki/List_of_Unicode_characters#Control_codes
631 _control_char_table = str.maketrans(

Callers 3

handle_one_requestMethod · 0.95
send_errorMethod · 0.95
run_cgiMethod · 0.80

Calls 1

log_messageMethod · 0.95

Tested by

no test coverage detected