kych

OAuth 2.0 API for Swiyu to enable Taler integration of Swiyu for KYC (experimental)
Log | Files | Refs

commit 84b1814c473355b0bdedf938e2e2e9683c17e129
parent 5363c5402617b83d7073dcd45c64564af46e0d63
Author: Henrique Chan Carvalho Machado <henriqueccmachado@tecnico.ulisboa.pt>
Date:   Tue,  9 Dec 2025 12:39:31 +0100

oauth2_gateway: fix logging formatting, disable colors and line breaks

Diffstat:
Moauth2_gateway/src/bin/webhook_worker.rs | 9+++++++--
Moauth2_gateway/src/main.rs | 2++
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/oauth2_gateway/src/bin/webhook_worker.rs b/oauth2_gateway/src/bin/webhook_worker.rs @@ -34,9 +34,14 @@ async fn main() -> Result<()> { tracing_subscriber::registry() .with( tracing_subscriber::EnvFilter::try_from_default_env() - .unwrap_or_else(|_| "webhook_worker=info,oauth2_gateway=info,sqlx=warn".into()), + .unwrap_or_else(|_| "oauth2_gateway=info,tower_http=info,sqlx=warn".into()), + ) + .with( + tracing_subscriber::fmt::layer() + .compact() + .with_ansi(false) + .with_timer(tracing_subscriber::fmt::time::LocalTime::rfc_3339()), ) - .with(tracing_subscriber::fmt::layer()) .init(); let args = Args::parse(); diff --git a/oauth2_gateway/src/main.rs b/oauth2_gateway/src/main.rs @@ -27,6 +27,8 @@ async fn main() -> Result<()> { ) .with( tracing_subscriber::fmt::layer() + .compact() + .with_ansi(false) .with_timer(tracing_subscriber::fmt::time::LocalTime::rfc_3339()), ) .init();