You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Review and improve error logging throughout the framework #4098
Multiple locations in the codebase have questions about whether errors should be logged, indicating a need for a comprehensive error logging strategy review.
Affected Files
packages/serverpod_client/lib/src/file_uploader.dart:77 - "Shouldn't we log something here?"
packages/serverpod/lib/src/server/server.dart:253 - "Log to database?"
packages/serverpod/lib/src/server/server.dart:290 - "Log to database?"
packages/serverpod/lib/src/server/future_call_manager/future_call_manager.dart:168 - "this should be logged or caught otherwise"
packages/serverpod/lib/src/server/health_check_manager.dart:97 - "Sometimes serverpod attempts to write duplicate health checks"
tests/serverpod_test_server/test_e2e/connection_test.dart:813 - "Check that it is recorded in error logs"
Suggested Implementation
Define a comprehensive logging strategy for the framework
Determine which errors should be logged vs thrown
Decide on error log destinations (console, database, external service)
Implement consistent logging patterns across the codebase
Add configuration options for log levels and destinations
Address each TODO location based on the strategy
Impact
Better error tracking, easier debugging in production
Activity
feat: Update all TODOs to reference newly created GitHub issues
feat: Update all TODOs to reference newly created GitHub issues