From 8b546c64373df0498207b06bf67cb2a468bc1925 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 11 Mar 2022 14:59:31 +0000 Subject: [PATCH] Reduce logging for http logs --- VoidCat/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 =>