kernelci / kernelci/kernelci-api
Include `username` in API logs
- Vorherrschende Sprache
- Python
- Sterne
- 10
- Forks
- 21
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
In the case of authenticated queries from API, include the username in the API logs for debugging purposes.
For example, API log when a user subscribes to a channel looks like this:
```
kernelci-api | INFO: 172.20.0.1:42984 - "POST /latest/subscribe/node HTTP/1.1" 200 OK
```
That should contain `username` of requesting user:
```
kernelci-api | INFO: 172.20.0.1:42984 - staging.kernelci.org "POST /latest/subscribe/node HTTP/1.1" 200 OK
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start at the API request logging path for authenticated queries, using POST /latest/subscribe/node as the concrete entry point. Verify that the completed log includes the requesting username while preserving the existing request details, and exercise that subscription request to confirm the output.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, observability
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100