refactor/tighten-architecture #26

Merged
GKaszewski merged 104 commits from refactor/tighten-architecture into master 2026-10-26 09:36:27 +00:00
3 changed files with 12 additions and 2 deletions
Showing only changes of commit 57c70afead - Show all commits

View File

@@ -410,3 +410,13 @@ fn malformed_config_file_reports_the_file_not_a_missing_database_url() {
Ok(())
});
}
#[test]
fn empty_database_url_is_reported_missing() {
Jail::expect_with(|jail| {
jail_with(jail, &[("DATABASE_URL", "")]);
let err = load().expect_err("empty DATABASE_URL is unset");
assert!(matches!(err, ConfigError::Missing("DATABASE_URL")), "{err}");
Ok(())
});
}

View File

@@ -4,7 +4,7 @@ use tokio::net::TcpListener;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenvy::dotenv().ok();
bootstrap::init_tracing("server=debug,tower_http=debug");
bootstrap::init_tracing("server=debug,bootstrap=debug,tower_http=debug");
let config = config::load().context("Failed to load configuration")?;
let app = bootstrap::build_server(&config).await?;

View File

@@ -3,7 +3,7 @@ use anyhow::Context;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenvy::dotenv().ok();
bootstrap::init_tracing("worker=info,application=info,k_ap=info");
bootstrap::init_tracing("worker=info,bootstrap=info,application=info,k_ap=info");
let config = config::load().context("Failed to load configuration")?;
let app = bootstrap::build_worker(&config).await?;