mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-02-05 18:15:18 -05:00
feat: Implement centralized error capture and handling with new middleware, services, and API endpoints, and add new admin and statistics API views.
This commit is contained in:
@@ -21,6 +21,7 @@ from apps.rides.models import (
|
||||
RideRanking,
|
||||
RideReview,
|
||||
)
|
||||
from apps.core.utils import capture_and_log
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -96,7 +97,7 @@ class RideRankingService:
|
||||
}
|
||||
|
||||
except Exception as e:
|
||||
self.logger.error(f"Error updating rankings: {e}", exc_info=True)
|
||||
capture_and_log(e, 'Update ride rankings', source='service')
|
||||
raise
|
||||
|
||||
def _get_eligible_rides(self, category: str | None = None) -> list[Ride]:
|
||||
|
||||
Reference in New Issue
Block a user