Log the pin if needed.
(self, request: Request)
| 526 | return rv |
| 527 | |
| 528 | def log_pin_request(self, request: Request) -> Response: |
| 529 | """Log the pin if needed.""" |
| 530 | if not self.check_host_trust(request.environ): |
| 531 | return SecurityError() # type: ignore[return-value] |
| 532 | |
| 533 | if self.pin_logging and self.pin is not None: |
| 534 | _log( |
| 535 | "info", " * To enable the debugger you need to enter the security pin:" |
| 536 | ) |
| 537 | _log("info", " * Debugger pin code: %s", self.pin) |
| 538 | return Response("") |
| 539 | |
| 540 | def __call__( |
| 541 | self, environ: WSGIEnvironment, start_response: StartResponse |
no test coverage detected