mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
Watchers being a little overzealous.
This commit is contained in:
parent
dccbae9c4b
commit
93d691a1f6
@ -172,15 +172,15 @@ namespace Observatory
|
|||||||
|
|
||||||
journalWatcher = new FileSystemWatcher(logDirectory.FullName, "Journal.????????????.??.log")
|
journalWatcher = new FileSystemWatcher(logDirectory.FullName, "Journal.????????????.??.log")
|
||||||
{
|
{
|
||||||
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess |
|
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size |
|
||||||
NotifyFilters.FileName | NotifyFilters.CreationTime | NotifyFilters.DirectoryName
|
NotifyFilters.FileName | NotifyFilters.CreationTime
|
||||||
};
|
};
|
||||||
journalWatcher.Changed += LogChangedEvent;
|
journalWatcher.Changed += LogChangedEvent;
|
||||||
journalWatcher.Created += LogCreatedEvent;
|
journalWatcher.Created += LogCreatedEvent;
|
||||||
|
|
||||||
statusWatcher = new FileSystemWatcher(logDirectory.FullName, "Status.json")
|
statusWatcher = new FileSystemWatcher(logDirectory.FullName, "Status.json")
|
||||||
{
|
{
|
||||||
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess
|
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size
|
||||||
};
|
};
|
||||||
statusWatcher.Changed += StatusUpdateEvent;
|
statusWatcher.Changed += StatusUpdateEvent;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user