mirror of
				https://github.com/9ParsonsB/Pulsar.git
				synced 2025-10-31 15:36:42 -04:00 
			
		
		
		
	Use same process to determine journal path in JournalPoke method.
This commit is contained in:
		| @@ -103,8 +103,6 @@ namespace Observatory | |||||||
|  |  | ||||||
|         #endregion |         #endregion | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|         #region Private Fields |         #region Private Fields | ||||||
|  |  | ||||||
|         private FileSystemWatcher journalWatcher; |         private FileSystemWatcher journalWatcher; | ||||||
| @@ -137,7 +135,7 @@ namespace Observatory | |||||||
|             statusWatcher.Changed += StatusUpdateEvent; |             statusWatcher.Changed += StatusUpdateEvent; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private DirectoryInfo GetJournalFolder(string path) |         private DirectoryInfo GetJournalFolder(string path = "") | ||||||
|         { |         { | ||||||
|             DirectoryInfo logDirectory; |             DirectoryInfo logDirectory; | ||||||
|  |  | ||||||
| @@ -252,9 +250,10 @@ namespace Observatory | |||||||
|             {  |             {  | ||||||
|                 while (monitoring) |                 while (monitoring) | ||||||
|                 { |                 { | ||||||
|  |                     var journalFolder = GetJournalFolder(); | ||||||
|                     FileInfo fileToPoke = null; |                     FileInfo fileToPoke = null; | ||||||
|  |  | ||||||
|                     foreach (var file in new DirectoryInfo(Properties.Core.Default.JournalFolder).GetFiles("Journal.????????????.??.log")) |                     foreach (var file in journalFolder.GetFiles("Journal.????????????.??.log")) | ||||||
|                     { |                     { | ||||||
|                         if (fileToPoke == null || string.Compare(file.Name, fileToPoke.Name) > 0) |                         if (fileToPoke == null || string.Compare(file.Name, fileToPoke.Name) > 0) | ||||||
|                         { |                         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user