diff --git a/OpenAlprWebhookProcessor/SystemLogs/LogsController.cs b/OpenAlprWebhookProcessor/SystemLogs/LogsController.cs index da16722e..5b9d886b 100644 --- a/OpenAlprWebhookProcessor/SystemLogs/LogsController.cs +++ b/OpenAlprWebhookProcessor/SystemLogs/LogsController.cs @@ -1,12 +1,9 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Serilog; -using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; -using System.Threading; using System.Threading.Tasks; namespace OpenAlprWebhookProcessor.SystemLogs @@ -23,7 +20,7 @@ public LogsController() [HttpGet] public async Task> GetLogs() { - var currentLogFile = Directory.GetFiles(".") + var currentLogFile = Directory.GetFiles("./config/") .LastOrDefault(x => x.Contains("log-")); using (var stream = System.IO.File.Open(