Skip to content

fix(ohmo): tee gateway run logs to file - #288

Merged
tjb-tech merged 1 commit into
mainfrom
fix/ohmo-gateway-run-logs
Jun 4, 2026
Merged

fix(ohmo): tee gateway run logs to file#288
tjb-tech merged 1 commit into
mainfrom
fix/ohmo-gateway-run-logs

Conversation

@tjb-tech

@tjb-tech tjb-tech commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make ohmo gateway run write logs to both stderr and .ohmo/logs/gateway.log by default
  • keep ohmo gateway start from duplicating log lines by launching the child with --no-console-log while the child still owns its file log handler
  • add regression coverage for gateway log handlers and background launch arguments

Closes #282

Tests

  • python -m pytest tests/test_ohmo/test_cli.py tests/test_ohmo/test_gateway.py -q -> 83 passed
  • python -m pytest tests/test_ohmo/ -q -> 94 passed
  • python -m ruff check ohmo/cli.py ohmo/gateway/service.py tests/test_ohmo/test_cli.py tests/test_ohmo/test_gateway.py

@tjb-tech
tjb-tech merged commit 256f7fc into main Jun 4, 2026
4 checks passed
wmd-1 pushed a commit to wmd-1/OpenHarness that referenced this pull request Jun 15, 2026
yl-jiang pushed a commit to yl-jiang/OpenHarness that referenced this pull request Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ohmo gateway run 前台模式下 gateway.log 停止更新,docker logs 与文件不同步

1 participant