mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-25 11:11:08 -05:00
Enhance documentation and management commands for ThrillWiki
- Updated backend README.md to include detailed management commands for configuration, database operations, cache management, data management, user authentication, content/media handling, trending/discovery, testing/development, and security/auditing. - Added a new MANAGEMENT_COMMANDS.md file for comprehensive command reference. - Included logging standardization details in architecture documentation (ADR-007). - Improved production checklist with configuration validation and cache verification steps. - Expanded API documentation to include error logging details. - Created a documentation review checklist to ensure completeness and accuracy.
This commit is contained in:
@@ -1243,6 +1243,18 @@ headers: {
|
||||
|
||||
All error responses follow a consistent format with appropriate HTTP status codes.
|
||||
|
||||
### Error Logging
|
||||
|
||||
All API errors are logged with full context for debugging:
|
||||
- Request details (method, path, user)
|
||||
- Error type and message
|
||||
- Stack trace (for 500 errors)
|
||||
- Request payload (sanitized)
|
||||
|
||||
Logs are sent to Sentry in production for monitoring.
|
||||
|
||||
See [ADR-007: Logging Standardization](./architecture/adr-007-logging-standardization.md) for details.
|
||||
|
||||
### Error Response Structure
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user