Page MenuHomeSoftware Heritage

deposit: Improve log rendering to at least log the reason behind error codes
Open, NormalPublic

Description

We don't have any context when reading the logs (query and status code) be that gunicorn-swh-deposit.service logs or at the end of the line in kibana.
That makes investigation hard to debug.

An actionable action: just adding the "reason" (when error code in {4xx,5xx}) would be a sufficient step forward to close this.

I have started to look into that but i don't currently get what's the needed change (deposit code, django, gunicorn, apache, ...)...

Event Timeline

ardumont triaged this task as Normal priority.Wed, Sep 23, 10:35 AM
ardumont created this task.
ardumont renamed this task from deposit: Improve log rendering to deposit: Improve log rendering to at least log the reason behind error codes.Wed, Sep 23, 10:37 AM
ardumont updated the task description. (Show Details)

Maybe we simply need to add more log statements in the deposit... that'd help!