diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2024-09-16 15:41:52 +0200 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2024-09-16 15:41:52 +0200 |
| commit | ccde4a437999267ae1f62316bebcc09ea7dc027d (patch) | |
| tree | 2d5a1f62b976264557af3fe4a40e8e531a249c06 /src/db.rs | |
| parent | 7b404a6d2321f27e9a808aca267bf8f9e4e681aa (diff) | |
Use tracing rather than std(out|err)
Diffstat (limited to 'src/db.rs')
| -rw-r--r-- | src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ pub async fn setup() -> Result<Client, AppError> { // 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); } }); |