mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 10:33:18 +08:00
feat: unify runtime logging (rotating files, log root, scripts, desktop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
86d4bad107
commit
1490bd5f24
25 changed files with 541 additions and 53 deletions
|
|
@ -13,8 +13,6 @@ $repoRoot = Resolve-RepoRoot
|
|||
$runDir = Join-Path $PSScriptRoot ".run"
|
||||
$null = New-Item -ItemType Directory -Force -Path $runDir -ErrorAction SilentlyContinue
|
||||
$pidFile = Join-Path $runDir "wiki_worker.pid"
|
||||
$outLog = Join-Path $runDir "wiki_worker.out.log"
|
||||
$errLog = Join-Path $runDir "wiki_worker.err.log"
|
||||
|
||||
function Test-AlivePid([int]$procId) {
|
||||
try {
|
||||
|
|
@ -51,6 +49,12 @@ $env:AIA_WORKSPACE_ROOT = $repoRoot
|
|||
$env:OPS_WORKSPACE_ROOT = $repoRoot
|
||||
$env:OCLAW_WORKSPACE = $repoRoot
|
||||
|
||||
. (Join-Path $PSScriptRoot "lib\ResolveRuntimeLogDir.ps1")
|
||||
$logDir = Get-OclawRuntimeLogDir -RepoRoot $repoRoot
|
||||
$null = New-Item -ItemType Directory -Force -Path $logDir -ErrorAction SilentlyContinue
|
||||
$outLog = Join-Path $logDir "wiki_worker.out.log"
|
||||
$errLog = Join-Path $logDir "wiki_worker.err.log"
|
||||
|
||||
if (-not $Background) {
|
||||
& $pythonExe -m runtime.workers.wiki.main
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue