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 thesubscriber
module to the list of imports from thetracing
crate to enable more detailed logging. -
subscription/src/db.rs
: Modified thecreate_subscriber
method in theDBConnection
implementation to use thequery
method with a function call for creating a subscriber, and added error handling for extracting subscriber data.