Including tracing setup in all examples (#79)

This commit is contained in:
David Pedersen
2021-08-01 22:01:33 +02:00
committed by GitHub
parent 6d787665d6
commit 666d088b26
10 changed files with 21 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ use tokio_postgres::NoTls;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt::init();
// setup connection pool
let manager =
PostgresConnectionManager::new_from_stringlike("host=localhost user=postgres", NoTls)