Ember: a reads-only log grep playbook (the app's own tune lines, the helper log, cmd.txt)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
0659fab5f2
commit
2b244d732e
1 changed files with 12 additions and 0 deletions
12
relay/playbooks/ember-log-grep-pc1.ps1
Normal file
12
relay/playbooks/ember-log-grep-pc1.ps1
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# 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
|
||||
Loading…
Reference in a new issue