resolve gh #243
- User
resolve gh #243
Assistant· claude-opus-5
I'll start by reading the issue.
Assistant· claude-opus-5
Now the edit:
Assistant· claude-opus-5
Now a test. Let me check the skipped-jobs test style for asserting on logger calls:
Assistant· claude-opus-5
Done — committed as
0569d453on the current branch (gsd/phase-02-package-management-sync), issue labelledstatus:done(not closed).What changed:
src/pcswitcher/orchestrator.py:1328— the sequential job loop logsJob %s startedat INFO beforejob.execute(), withextra={"job": job.name, "host": "source"}, rendering asHH:MM:SS [INFO] [apt_sync] (source) Job apt_sync started.tests/unit/orchestrator/test_logging_system.py— two tests: the line is emitted before the job's own execute runs, and it carries the job/source tags.docs/system/logging.md:121— the INFO example said "Starting job X"; aligned to the actual text.
Two judgment calls:
- Scope is the sync-job loop. The system jobs already announce themselves at INFO (
Creating pre-sync snapshots,Installing pc-switcher …) and the disk monitors log their start at DEBUG, so a second start line there would be duplication.