desctruct info for exporter

feature/1126
prplV 2025-03-05 13:26:56 +03:00
parent ba82d59c74
commit f6ad632c2d
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use tokio_postgres::NoTls;
use std::env; use std::env;
use anyhow::Result; use anyhow::Result;
use log::{info, error}; use log::{info, error};
use std::ops::Drop;
/// An entity which handles DB connections. /// An entity which handles DB connections.
/// ///
@ -102,3 +103,9 @@ impl Exporter {
} }
} }
impl Drop for Exporter {
fn drop(&mut self) {
info!("Deinitializng Exporter and DB connection pool ...")
}
}