feat: add logs
This commit is contained in:
@@ -70,6 +70,9 @@ impl ForManagingDatabases for SQLXHandler {
|
||||
.execute(&pool)
|
||||
.await
|
||||
.map_err(|e| format!("create database failed: {}", e))?;
|
||||
|
||||
info!(database = %ident, "Database created");
|
||||
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
@@ -98,6 +101,9 @@ impl ForManagingDatabases for SQLXHandler {
|
||||
.execute(&pool)
|
||||
.await
|
||||
.map_err(|e| format!("drop database failed: {}", e))?;
|
||||
|
||||
info!(database = %ident, "Database deleted");
|
||||
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user