#1 : Encore, ça fait beaucoup la, non.
This commit is contained in:
@@ -134,10 +134,16 @@ static async Task LogKeycloakMetadataAsync(IConfiguration configuration, Logger
|
||||
(int)response.StatusCode,
|
||||
response.Content.Headers.ContentType?.ToString(),
|
||||
preview.Replace(Environment.NewLine, " "));
|
||||
Console.WriteLine(
|
||||
"Diagnostic Keycloak metadata | Url: " + metadataAddress +
|
||||
" | Status: " + (int)response.StatusCode +
|
||||
" | ContentType: " + response.Content.Headers.ContentType +
|
||||
" | Body: " + preview.Replace(Environment.NewLine, " "));
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
logger.Error(exception, "Diagnostic Keycloak metadata impossible | Url: {MetadataAddress} | Message: {Message}", metadataAddress, exception.Message);
|
||||
Console.WriteLine("Diagnostic Keycloak metadata impossible | Url: " + metadataAddress + " | Message: " + exception.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user