kimi
|
594b56a9bd
|
refactor: break up request_logging.py::dispatch from 79 to 27 lines
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
- Extract _should_skip_path() - checks if path should be skipped
- Extract _prepare_request_context() - generates correlation ID and records start time
- Extract _get_duration_ms() - calculates request duration
- Extract _log_success() - logs successful requests
- Extract _log_error() - logs failed requests with error capture
Makes dispatch() a thin orchestrator (27 lines) calling focused helpers.
Fixes #616
|
2026-03-21 14:05:08 -04:00 |
|