• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

map-services / next-departures-api / 25997719096

17 May 2026 05:21PM UTC coverage: 29.626% (+1.3%) from 28.278%
25997719096

Pull #19

github

rm-hull
feat: implement configurable logger middleware

Replaced the hardcoded `SlogMiddleware` with a flexible `Logger`
middleware that supports path exclusion via arguments.

*   Added `Logger` function with `excludedPaths` parameter.
*   Updated `ApiServer` to ignore `/metrics` and `/healthz`.
*   Added unit tests to verify logging and exclusion behavior.

```mermaid
sequenceDiagram
    participant C as Client
    participant M as Logger Middleware
    participant H as Handler

    C->>M: Request
    M->>H: c.Next()
    H-->>M: Response
    M->>M: Check if path is excluded
    alt Not Excluded
        M->>M: Log request details
    end
    M-->>C: Response
```
Pull Request #19: refactor: convert to structured logging via `log/slog`

27 of 67 new or added lines in 12 files covered. (40.3%)

6 existing lines in 4 files now uncovered.

341 of 1151 relevant lines covered (29.63%)

0.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api_server.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc