12 lines
1.2 KiB
PowerShell
12 lines
1.2 KiB
PowerShell
# Ember: reads only. The installed app's own tune lines (not the job echoes) from <data root>\logs, newest file:
|
|
# the engine's "tune:" requests and answers, "tune helper", TUNE start/aborted/chosen/rows, and the helper.log tail.
|
|
$ErrorActionPreference = 'Continue'
|
|
$l = Get-ChildItem (Join-Path $env:LOCALAPPDATA 'igneum\logs') -Filter 'app-*.log' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1
|
|
if (-not $l) { Write-Output 'RESULT GREP no app log'; exit 1 }
|
|
Write-Output ('RESULT GREP log=' + $l.FullName)
|
|
Get-Content -LiteralPath $l.FullName | Where-Object { ($_ -match '\] tune|^\d+ tune|tune helper|TUNE (start|aborted|chosen|card=|helper)|refused|did not take|power cap|Power Helper') -and ($_ -notmatch 'job ember-|RESULT ') } | Select-Object -Last 80 | ForEach-Object { Write-Output ('RESULT GREP ' + $_) }
|
|
$h = Join-Path $env:LOCALAPPDATA 'igneum\app\sweep\helper.log'
|
|
if (Test-Path -LiteralPath $h) { Get-Content -LiteralPath $h | Select-Object -Last 12 | ForEach-Object { Write-Output ('RESULT GREP helper ' + $_) } }
|
|
$c = Join-Path $env:LOCALAPPDATA 'igneum\app\sweep\cmd.txt'
|
|
if (Test-Path -LiteralPath $c) { Write-Output ('RESULT GREP cmd.txt: ' + ((Get-Content -LiteralPath $c) -join ' / ')) }
|
|
exit 0
|