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

map-services / fuel-prices-api / 26314158067

22 May 2026 10:03PM UTC coverage: 50.098% (+0.3%) from 49.833%
26314158067

push

github

web-flow
refactor: replace log with structured slog (#63)

* refactor: replace log with structured slog

Migrated project logging to use `log/slog` for structured output.
Implemented a new `middleware.RequestLogger` to provide detailed,
structured request logging.

```mermaid
graph TD
    A[HTTP Request] --> B{RequestLogger Middleware}
    B -->|Log Request Data| C[slog.JSONHandler]
    C --> D[stderr]
```

* refactor: improve logging precision and formatting

- Trim whitespace from migration logs to improve output cleanliness.
- Switch to `RequestURI` to capture full query parameters in logs.
- Increase latency precision to sub-millisecond accuracy by using
  microseconds converted to float milliseconds.

* refactor: sanitize request path in logger

* Changed `RequestURI` to `URL.Path` to avoid logging query parameters
  in the request logs, improving security and log readability.

34 of 99 new or added lines in 19 files covered. (34.34%)

5 existing lines in 2 files now uncovered.

767 of 1531 relevant lines covered (50.1%)

0.55 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