Skip to content

Log priorities for journald and Docker, and new default jobs - #60

Merged
robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q
Oct 29, 2026
Merged

robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q

Conversation

@robdevops

@robdevops robdevops commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Log priorities under systemd: each line starts with its syslog priority (<3> error, <4> warning, <6> info, <7> debug), so journalctl colours and filters (-p) by level.
  • Log streams: warnings and errors go to stderr, info and debug to stdout. Docker's journald driver then files them as err and info, so journalctl CONTAINER_NAME=finbot -p warning shows the problems. bot.py writes both streams a whole line at a time; finbot.service sends stdout to the journal too (it was discarded).
  • Default jobs: weekly jobs on Saturday, monthly and quarterly on the 1st, at 9:00 Sydney (reminders stay at 8:30); earnings monthly; performance shown as 1w, 1m, 3m. The podcast jobs and the bi-annual and annual movers and performance jobs are no longer defaults (/jobs add podcasts FEED_URL still works).
  • Tests: they clear JOURNAL_STREAM (GitHub's runner sets it, which put <N> on log lines and hung the subprocess tests) and send every level to stderr (log.SPLIT); new tests cover the real split and the priority prefix.
  • Docs: doc/configuration.md, doc/docker.md, doc/scheduling.md (default-jobs table renumbered) and the logging note in CLAUDE.md.

Test plan

  • .venv/bin/python -m unittest discover -s tests -b (655 tests) passes, with and without JOURNAL_STREAM set
  • CI: test (3.x), test (3.13.5), docker

🤖 Generated with Claude Code

https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX

…olours and filters by level

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
… 9:00, earnings monthly, performance 1w/1m/3m; no podcast, bi-annual or annual defaults

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
…r's journald driver files them as err and info

The unit sends stdout to the journal too (the <N> priority prefix still sets each line's priority there).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
…og lines carry no <N> prefix

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
@robdevops
robdevops merged commit 1f0cd05 into main Oct 29, 2026
4 checks passed
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.

2 participants