Skip to content

Commit 1a02079

Browse files
committed
don't log http response body as it's massive for dat files
1 parent b9c5bc8 commit 1a02079

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ObjectService/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
2121
builder.Services.AddHttpLogging(logging =>
2222
{
23-
logging.LoggingFields = HttpLoggingFields.All;
23+
logging.LoggingFields = HttpLoggingFields.Request
24+
| HttpLoggingFields.ResponsePropertiesAndHeaders
25+
| HttpLoggingFields.Duration; // this is `All` excluding `ResponseBody`
2426
logging.CombineLogs = true;
2527
});
2628

0 commit comments

Comments
 (0)