#1 : Encore, ça fait beaucoup la, non.

This commit is contained in:
Loic Masi
2026-04-21 14:37:55 +02:00
parent 8be0047eee
commit 265297519c
3 changed files with 8 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -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"
}
}

View File

@@ -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>