Add server logging to capture crashes and errors #189
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#189
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When the dashboard server crashes, there's no way to diagnose what happened. Currently,
ProcessManager.spawnServerProcess()discards all output:There's even a TODO acknowledging this:
// TODO: Consider logging to a file instead of discardingImpact
Proposed Solution
Redirect stdout/stderr to a log file:
Implementation
ProcessManager.spawnServerProcess()to redirect output to log fileiw server statusto mention log file location when server is not respondingiw server logscommand to tail the logLog Management Options
Acceptance Criteria
iw server statuspoints to log file when server is dead/unresponsiveIntake: agent-ready
Workflow: waterfall
Reason: all gates passed
Analysis: project-management/issues/IW-189/analysis.md on branch IW-189
Implement: needs-human
Reason: batch-implement exit 1 — the kanon plugin did not compile against this branch's iw-cli core, so no phase ran.
ForgeCatchUp.scala:143expectsfetchPullRequestForBranchto returnEither[String, _]; iw-cli core returnsEither[TrackerError, _]since #778. The plugin must be updated to the core API. This is not specific to this issue.batch-implement.log was not written. The command output:
Release: the implement loop failed this issue for a reason outside it. The kanon plugin did not compile against iw-cli main, because the tracker port now returns TrackerError (iw-cli #778). The plugin fix is dev-docs #484, and iw-cli 0.22.1 carries the core change. The issue goes back to the implement loop.