MCPcopy
hub / github.com/pallets/werkzeug / log_pin_request

Method log_pin_request

src/werkzeug/debug/__init__.py:528–538  ·  view source on GitHub ↗

Log the pin if needed.

(self, request: Request)

Source from the content-addressed store, hash-verified

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

Callers 1

__call__Method · 0.95

Calls 4

check_host_trustMethod · 0.95
SecurityErrorClass · 0.85
_logFunction · 0.85
ResponseClass · 0.50

Tested by

no test coverage detected