From 93d691a1f6206d54b0dcbf4484980ae5cb5009d6 Mon Sep 17 00:00:00 2001 From: Xjph Date: Wed, 30 Jun 2021 08:35:18 -0230 Subject: [PATCH] Watchers being a little overzealous. --- ObservatoryCore/LogMonitor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ObservatoryCore/LogMonitor.cs b/ObservatoryCore/LogMonitor.cs index 74946be..962df8a 100644 --- a/ObservatoryCore/LogMonitor.cs +++ b/ObservatoryCore/LogMonitor.cs @@ -172,15 +172,15 @@ namespace Observatory journalWatcher = new FileSystemWatcher(logDirectory.FullName, "Journal.????????????.??.log") { - NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess | - NotifyFilters.FileName | NotifyFilters.CreationTime | NotifyFilters.DirectoryName + NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | + NotifyFilters.FileName | NotifyFilters.CreationTime }; journalWatcher.Changed += LogChangedEvent; journalWatcher.Created += LogCreatedEvent; statusWatcher = new FileSystemWatcher(logDirectory.FullName, "Status.json") { - NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess + NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size }; statusWatcher.Changed += StatusUpdateEvent; }