Reorganize all observatory core projects into monorepo (#25)
* chore: move all observatory repos to core * only save journal folder on change, don't constantly re-check during monitoring * chore: monorepo project changes * chore: monorepo migration
This commit is contained in:
parent
456c80198a
commit
4c1031b8f9
371 changed files with 7565 additions and 5 deletions
|
|
@ -229,8 +229,11 @@ namespace Observatory
|
|||
throw new NotImplementedException("Current OS Platform Not Supported.");
|
||||
}
|
||||
|
||||
Properties.Core.Default.JournalFolder = path;
|
||||
Properties.Core.Default.Save();
|
||||
if (Properties.Core.Default.JournalFolder != path)
|
||||
{
|
||||
Properties.Core.Default.JournalFolder = path;
|
||||
Properties.Core.Default.Save();
|
||||
}
|
||||
|
||||
return logDirectory;
|
||||
}
|
||||
|
|
@ -378,11 +381,12 @@ namespace Observatory
|
|||
/// </summary>
|
||||
private async void JournalPoke()
|
||||
{
|
||||
var journalFolder = GetJournalFolder();
|
||||
|
||||
await System.Threading.Tasks.Task.Run(() =>
|
||||
{
|
||||
while (monitoring)
|
||||
{
|
||||
var journalFolder = GetJournalFolder();
|
||||
FileInfo fileToPoke = null;
|
||||
|
||||
foreach (var file in journalFolder.GetFiles("Journal.????????????.??.log"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue