Created by: oblivisheee
This pull request includes changes to the subscription/src/db.rs file to enhance logging and improve error handling in the DBConnection implementation. The most important changes include adding a new import for the subscriber module and modifying the create_subscriber method to use a query function and handle errors more robustly.
Enhancements to logging and error handling:
-
subscription/src/db.rs: Added thesubscribermodule to the list of imports from thetracingcrate to enable more detailed logging. -
subscription/src/db.rs: Modified thecreate_subscribermethod in theDBConnectionimplementation to use thequerymethod with a function call for creating a subscriber, and added error handling for extracting subscriber data.