add only warnings and errors into log

This commit is contained in:
Michał Zieliński
2025-03-24 16:37:38 +01:00
parent a6ac91305e
commit ebb98191a6

View File

@@ -24,6 +24,8 @@ public class LogsController : Controller
entry.SessionId = _SessionId; entry.SessionId = _SessionId;
entry.Instance = LogInstance.Morska; entry.Instance = LogInstance.Morska;
if (entry.Type == LogEntryType.Info) { return ;}
try { try {
var collection = _firestoreDb.Collection("ApiLogs"); var collection = _firestoreDb.Collection("ApiLogs");
var document = collection.Document(); var document = collection.Document();