MCPcopy Create free account
hub / github.com/vercel/vercel / log_message

Method log_message

python/vercel-runtime/src/vercel_runtime/vc_init.py:764–771  ·  view source on GitHub ↗
(self, format: str, *args: Any)

Source from the content-addressed store, hash-verified

762 # Re-implementation of BaseHTTPRequestHandler's log_message method to
763 # log to stdout instead of stderr.
764 def log_message(self, format: str, *args: Any) -> None:
765 message = format % args
766 addr = self.address_string()
767 ts = self.log_date_time_string()
768 msg = message.translate(self._control_char_table) # type: ignore[attr-defined]
769 sys.stdout.write(
770 f"{addr} - - [{ts}] {msg}\n",
771 )
772
773 def _vc_fire_end_once(self) -> None:
774 # Send the IPC "end" message exactly once per request. For a

Callers

nothing calls this directly

Calls 3

address_stringMethod · 0.80
translateMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected