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 anyhow::Result;
use log::{info, error};
use std::ops::Drop;
/// An entity which handles DB connections.
///
@ -101,4 +102,10 @@ impl Exporter {
Ok(metrics.get_bytes_len())
}
}
impl Drop for Exporter {
fn drop(&mut self) {
info!("Deinitializng Exporter and DB connection pool ...")
}
}