Skip to content

Commit

Permalink
fix(logs): pretty print discovery reponses debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Sep 9, 2024
1 parent 01ebe99 commit f27c93b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl RootContext for Root {
match serde_yaml::from_slice::<PluginConfiguration>(&config_bytes) {
Err(e) => warn!("error parsing plugin configuration: {:?}", e),
Ok(plugin_config) => {
debug!("parsed plugin configuration: {:?}", plugin_config);
debug!("parsed plugin configuration: {:#?}", plugin_config);

// Evaluate the plugin configuration and check if the values are valid.
// Type checking is done by serde, so we only need to check the values.
Expand Down Expand Up @@ -382,7 +382,7 @@ impl Context for Root {
);
}
Ok(open_id_response) => {
debug!("parsed openid config response: {:?}", open_id_response);
debug!("parsed openid config response: {:#?}", open_id_response);

// Set the state to `LoadingJwks`.
resolver_to_update.state = OpenIdResolverState::LoadingJwks {
Expand Down Expand Up @@ -412,7 +412,7 @@ impl Context for Root {
warn!("error parsing jwks body: {:?}", e);
}
Ok(jwks_response) => {
debug!("parsed jwks body: {:?}", jwks_response);
debug!("parsed jwks body: {:#?}", jwks_response);

// Check if keys are present
if jwks_response.keys.is_empty() {
Expand Down

0 comments on commit f27c93b

Please sign in to comment.