From ccde4a437999267ae1f62316bebcc09ea7dc027d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 16 Sep 2024 15:41:52 +0200 Subject: Use tracing rather than std(out|err) --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db.rs') diff --git a/src/db.rs b/src/db.rs index b74550b..4a9e9a7 100644 --- a/src/db.rs +++ b/src/db.rs @@ -11,7 +11,7 @@ pub async fn setup() -> Result { // Spawn a new task to run the connection to the database tokio::spawn(async move { if let Err(e) = connection.await { - eprintln!("Database connection error: {}", e); + tracing::error!("Database connection error: {}", e); } }); -- cgit v1.2.3-18-g5258