Reduce logging for http logs

This commit is contained in:
Kieran 2022-03-11 14:59:31 +00:00
parent 5c23accf89
commit 8b546c6437
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -52,9 +52,10 @@ if (useRedis)
services.AddHttpLogging((o) =>
{
o.LoggingFields = HttpLoggingFields.All;
o.LoggingFields = HttpLoggingFields.RequestHeaders | HttpLoggingFields.ResponseHeaders | HttpLoggingFields.Response;
o.RequestBodyLogLimit = 4096;
o.ResponseBodyLogLimit = 4096;
o.MediaTypeOptions.AddText("application/json");
});
services.AddHttpClient();
services.AddSwaggerGen(c =>