variphx commited on
Commit
1b4cc22
·
1 Parent(s): eb8926a
Files changed (2) hide show
  1. src/main.rs +0 -1
  2. src/models/states/mod.rs +2 -0
src/main.rs CHANGED
@@ -28,7 +28,6 @@ mod services;
28
 
29
  #[tokio::main]
30
  async fn main() -> anyhow::Result<()> {
31
- println!("test");
32
  tracing_subscriber::registry()
33
  .with(
34
  tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
 
28
 
29
  #[tokio::main]
30
  async fn main() -> anyhow::Result<()> {
 
31
  tracing_subscriber::registry()
32
  .with(
33
  tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
src/models/states/mod.rs CHANGED
@@ -24,6 +24,7 @@ impl AppState {
24
  }
25
 
26
  fn diesel_pool_helper() -> anyhow::Result<Pool> {
 
27
  Ok(Pool::builder(Manager::new(
28
  std::env::var("DATABASE_URL").expect("`DATABASE_URL` environment variable must be set"),
29
  Runtime::Tokio1,
@@ -32,6 +33,7 @@ impl AppState {
32
  }
33
 
34
  async fn qdrant_client_helper() -> anyhow::Result<Arc<Qdrant>> {
 
35
  let client = Qdrant::from_url(
36
  &std::env::var("QDRANT_URL").expect("`QDRANT_URL` environment variable must be set"),
37
  )
 
24
  }
25
 
26
  fn diesel_pool_helper() -> anyhow::Result<Pool> {
27
+ tracing::debug!("initializing database connection pool");
28
  Ok(Pool::builder(Manager::new(
29
  std::env::var("DATABASE_URL").expect("`DATABASE_URL` environment variable must be set"),
30
  Runtime::Tokio1,
 
33
  }
34
 
35
  async fn qdrant_client_helper() -> anyhow::Result<Arc<Qdrant>> {
36
+ tracing::debug!("initializing qdrant client");
37
  let client = Qdrant::from_url(
38
  &std::env::var("QDRANT_URL").expect("`QDRANT_URL` environment variable must be set"),
39
  )