From ebb98191a686478fdadb9755d9263ff7257c5006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Mon, 24 Mar 2025 16:37:38 +0100 Subject: [PATCH] add only warnings and errors into log --- WebAPI/Controllers/LogsController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WebAPI/Controllers/LogsController.cs b/WebAPI/Controllers/LogsController.cs index 6c93bcf..449d5e4 100644 --- a/WebAPI/Controllers/LogsController.cs +++ b/WebAPI/Controllers/LogsController.cs @@ -24,6 +24,8 @@ public class LogsController : Controller entry.SessionId = _SessionId; entry.Instance = LogInstance.Morska; + if (entry.Type == LogEntryType.Info) { return ;} + try { var collection = _firestoreDb.Collection("ApiLogs"); var document = collection.Document();