Python Production Debugging — Junior¶
Start from evidence, not a theory.
- Capture the error, request ID, time, and affected version.
- Reproduce the smallest safe example.
- Read the complete traceback from the first relevant frame.
- Add a test before fixing the defect.
- Verify the fix with the same reproduction.
Use structured logs with meaningful fields; do not log secrets or raw personal data.