forked from Kieran/void.cat
Reduce logging for http logs
This commit is contained in:
parent
5c23accf89
commit
8b546c6437
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user