Skip to content

fix(logs): find active log file across date boundaries#432

Open
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-42904-fix-logs-follow-date
Open

fix(logs): find active log file across date boundaries#432
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-42904-fix-logs-follow-date

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes issue where openclaw channels logs could not find logs when gateway runs across midnight
  • When today's log file doesn't exist, fall back to the most recently modified log file

Test plan

  • pnpm build 成功

Fixes openclaw#42875

Warn users when creating a cron job without specifying the --agent flag,
so they know the job will run with the default agent (main).

Fixes openclaw#42196
Fixes openclaw#42875

When gateway runs across midnight, openclaw channels logs was looking
for today's log file instead of the active one. This change makes
the CLI find the most recently modified log file as a fallback.
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.

openclaw logs --follow Cannot View Gateway Real-time Logs

2 participants