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