mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-15 13:55:30 +00:00
Fix log parser
This commit is contained in:
parent
9a7f1f002f
commit
4a27111845
2 changed files with 4 additions and 4 deletions
AutoTrackR2
|
@ -483,13 +483,12 @@ function Read-LogEntry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
|
||||||
# Monitor the log file and process new lines as they are added
|
# Monitor the log file and process new lines as they are added
|
||||||
Get-Content -Path $logFilePath -Wait -Tail 0 | ForEach-Object {
|
Get-Content -Path $logFilePath -Wait -Tail 0 | ForEach-Object {
|
||||||
Read-LogEntry $_
|
Read-LogEntry $_
|
||||||
}
|
}
|
||||||
#>
|
|
||||||
|
|
||||||
|
<#
|
||||||
# Open the log file with shared access for reading and writing
|
# 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)
|
$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
|
$reader = [System.IO.StreamReader]::new($fileStream, [System.Text.Encoding]::UTF8) # Ensure we're reading as UTF-8
|
||||||
|
@ -516,4 +515,5 @@ finally {
|
||||||
# Ensure we close the reader and file stream properly when done
|
# Ensure we close the reader and file stream properly when done
|
||||||
$reader.Close()
|
$reader.Close()
|
||||||
$fileStream.Close()
|
$fileStream.Close()
|
||||||
}
|
}
|
||||||
|
#>
|
|
@ -9,7 +9,7 @@ namespace AutoTrackR2
|
||||||
{
|
{
|
||||||
public partial class UpdatePage : UserControl
|
public partial class UpdatePage : UserControl
|
||||||
{
|
{
|
||||||
private string currentVersion = "v2.06-test";
|
private string currentVersion = "v2.06-release";
|
||||||
private string latestVersion;
|
private string latestVersion;
|
||||||
|
|
||||||
public UpdatePage()
|
public UpdatePage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue