From bcede2e954711d2812b723e355c3fe4678944909 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 2 Aug 2024 14:45:58 +0100 Subject: [PATCH] Using tracing::warn instead of println --- src/core/authorization_request/parameters.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/authorization_request/parameters.rs b/src/core/authorization_request/parameters.rs index 917792e..517ab54 100644 --- a/src/core/authorization_request/parameters.rs +++ b/src/core/authorization_request/parameters.rs @@ -163,11 +163,10 @@ impl ClientMetadata { ))? .try_into() .context("failed to parse client metadata from JSON"); - } else { - // bail!("the client metadata was not passed by reference or value") - println!("[WARNING] the client metadata was not passed by reference or value"); - return Ok(ClientMetadata(UntypedObject::default())) } + + tracing::warn!("the client metadata was not passed by reference or value"); + Ok(ClientMetadata(UntypedObject::default())) } }