From d20813c030c4a0ef6651b391afac30172d19ecca Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Mon, 23 Sep 2024 15:22:33 +0300 Subject: [PATCH] Fix --- .../Controllers/CrashUploadController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BUTR.CrashReport.Server/Controllers/CrashUploadController.cs b/src/BUTR.CrashReport.Server/Controllers/CrashUploadController.cs index 36dbfcf..84ed7af 100644 --- a/src/BUTR.CrashReport.Server/Controllers/CrashUploadController.cs +++ b/src/BUTR.CrashReport.Server/Controllers/CrashUploadController.cs @@ -53,7 +53,7 @@ public Task CrashUploadAsync(CancellationToken ct) { if (Request.ContentLength is not { } contentLength || contentLength < _options.MinContentLength || contentLength > _options.MaxContentLength) { - _logger.LogWarning("Content length is invalid: {ContentLength}", Request.ContentLength); + _logger.LogWarning("Content length is invalid: {ContentLength}. Min: {MinContentLength}; Max: {MaxContentLength}", Request.ContentLength, _options.MinContentLength, _options.MaxContentLength); return Task.FromResult(StatusCode(StatusCodes.Status500InternalServerError)); }