Fix log parser

This commit is contained in:
BubbaGumpShrump 2025-01-16 14:34:37 -05:00
parent 9a7f1f002f
commit 609366235c
2 changed files with 5 additions and 4 deletions

View file

@ -483,13 +483,13 @@ function Read-LogEntry {
}
}
<#
# Monitor the log file and process new lines as they are added
Get-Content -Path $logFilePath -Wait -Tail 0 | ForEach-Object {
Read-LogEntry $_
}
#>
<#
# Open the log file with shared access for reading and writing
$fileStream = [System.IO.FileStream]::new($logFilePath, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::ReadWrite)
$reader = [System.IO.StreamReader]::new($fileStream, [System.Text.Encoding]::UTF8) # Ensure we're reading as UTF-8
@ -516,4 +516,5 @@ finally {
# Ensure we close the reader and file stream properly when done
$reader.Close()
$fileStream.Close()
}
}
#>

View file

@ -9,7 +9,7 @@ namespace AutoTrackR2
{
public partial class UpdatePage : UserControl
{
private string currentVersion = "v2.06-test";
private string currentVersion = "v2.06-release";
private string latestVersion;
public UpdatePage()