Skip to content

Review and improve error logging throughout the framework #4098

Closed as not planned

Description

@coderabbitai

Description

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

Related

Activity

  1. added
    documentation
    enhancement
    on Oct 27, 2025
  2. removed
    documentation
    on Nov 3, 2025
  3. added
    area: monitoring
    on Nov 6, 2025
  4. moved this from Inbox 📫 to Done 🚀 in Serverpod Frameworkson Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: monitoringenhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions