MCPcopy
hub / github.com/OpenBMB/ChatDev / log_request

Method log_request

utils/structured_logger.py:130–133  ·  view source on GitHub ↗

Log incoming request.

(self, method: str, url: str, correlation_id: str = None, **kwargs)

Source from the content-addressed store, hash-verified

128 exception=exception_info, **kwargs)
129
130 def log_request(self, method: str, url: str, correlation_id: str = None, **kwargs):
131 """Log incoming request."""
132 self._log(LogType.REQUEST, LogLevel.INFO, f"Incoming {method} request to {url}",
133 correlation_id, method=method, url=url, **kwargs)
134
135 def log_response(self, status_code: int, response_time: float, correlation_id: str = None, **kwargs):
136 """Log outgoing response."""

Callers 1

Calls 1

_logMethod · 0.95

Tested by

no test coverage detected