kernelci / kernelci/kernelci-api
Include `username` in API logs
- Langage dominant
- Python
- Étoiles
- 10
- Forks
- 21
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- api, observability
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100