Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mlapaglia committed Nov 4, 2023
1 parent d6f8c68 commit 7b68c66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions OpenAlprWebhookProcessor/SystemLogs/LogsController.cs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -23,7 +20,7 @@ public LogsController()
[HttpGet]
public async Task<List<string>> GetLogs()
{
var currentLogFile = Directory.GetFiles(".")
var currentLogFile = Directory.GetFiles("./config/")
.LastOrDefault(x => x.Contains("log-"));

using (var stream = System.IO.File.Open(
Expand Down

0 comments on commit 7b68c66

Please sign in to comment.