#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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
"Keycloak": {
|
||||
"Authority": "https://10.4.0.131/keycloak/realms/webzine-realm",
|
||||
"MetadataAddress": "https://10.4.0.131/keycloak/realms/webzine-realm/.well-known/openid-configuration",
|
||||
"PublicOrigin": "https://10.4.0.131/"
|
||||
"PublicOrigin": "https://10.4.0.131"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,6 @@
|
||||
<logger name="Microsoft.Hosting.Lifetime*" minlevel="Info" writeTo="allfile,console" final="true" />
|
||||
|
||||
<!-- Tous les autres logs (y compris System) en Info+ -->
|
||||
<logger name="*" minlevel="Info" writeTo="allfile" />
|
||||
<logger name="*" minlevel="Info" writeTo="allfile,console" />
|
||||
</rules>
|
||||
</nlog>
|
||||
|
||||
Reference in New Issue
Block a user