diff --git a/common/credential-storage/src/persistent_storage/mod.rs b/common/credential-storage/src/persistent_storage/mod.rs index 565ab94513a..16a1ae9d5a0 100644 --- a/common/credential-storage/src/persistent_storage/mod.rs +++ b/common/credential-storage/src/persistent_storage/mod.rs @@ -54,8 +54,8 @@ impl PersistentStorage { /// * `database_path`: path to the database. pub async fn init>(database_path: P) -> Result { debug!( - "Attempting to connect to database {:?}", - database_path.as_ref().as_os_str() + "Attempting to connect to database {}", + database_path.as_ref().display() ); let opts = sqlx::sqlite::SqliteConnectOptions::new() diff --git a/common/gateway-stats-storage/src/lib.rs b/common/gateway-stats-storage/src/lib.rs index 8ad34bbca47..d29de3a1b01 100644 --- a/common/gateway-stats-storage/src/lib.rs +++ b/common/gateway-stats-storage/src/lib.rs @@ -33,8 +33,8 @@ impl PersistentStatsStorage { /// * `database_path`: path to the database. pub async fn init + Send>(database_path: P) -> Result { debug!( - "Attempting to connect to database {:?}", - database_path.as_ref().as_os_str() + "Attempting to connect to database {}", + database_path.as_ref().display() ); // TODO: we can inject here more stuff based on our gateway global config diff --git a/common/gateway-storage/src/lib.rs b/common/gateway-storage/src/lib.rs index 2d05d43fe74..ea534b8c1bc 100644 --- a/common/gateway-storage/src/lib.rs +++ b/common/gateway-storage/src/lib.rs @@ -82,8 +82,8 @@ impl GatewayStorage { message_retrieval_limit: i64, ) -> Result { debug!( - "Attempting to connect to database {:?}", - database_path.as_ref().as_os_str() + "Attempting to connect to database {}", + database_path.as_ref().display() ); // TODO: we can inject here more stuff based on our gateway global config