diff --git a/VoidCat/Program.cs b/VoidCat/Program.cs index 2577158..70ce4fe 100644 --- a/VoidCat/Program.cs +++ b/VoidCat/Program.cs @@ -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 =>