Skip to content

refactor: read environment variables once at startup - #109

Closed
bjornpagen wants to merge 1 commit into
tembo:mainfrom
bjornpagen:pr/env-once
Closed

bjornpagen wants to merge 1 commit into
tembo:mainfrom
bjornpagen:pr/env-once

Conversation

@bjornpagen

Copy link
Copy Markdown
Contributor

voxl read its environment wherever it used it: VOXL_DEBUG_MARKER on
every picture and capture, the password, TLS and files-root variables in
four places, RUST_LOG through env_logger. Each read takes the
environment's lock and scans it, and the environment was an input to
five functions.

Now one Env is read when voxl starts and passed where it is needed.
A VOXL_DEBUG_MARKER that is not x,y is logged and the marker stays
off, where it used to sit at 300,150 without a word, and the marker is
read only where all of it fits the capture (it indexed past a capture
near the bottom edge and aborted voxl). A capture's marker reading is an
Option, not -1.

Testing: unit tests for the marker's parsing and placement; CI.

🤖 Generated with Claude Code

voxl read its environment wherever it used it: VOXL_DEBUG_MARKER on
every picture and capture, the password, TLS and files-root variables in
four places, RUST_LOG through env_logger. Each read takes the
environment's lock and scans it, and the environment was an input to
five functions.

Now one `Env` is read when voxl starts and passed where it is needed.
A `VOXL_DEBUG_MARKER` that is not `x,y` is logged and the marker stays
off, where it used to sit at 300,150 without a word, and the marker is
read only where all of it fits the capture (it indexed past a capture
near the bottom edge and aborted voxl). A capture's marker reading is an
`Option`, not -1.

Testing: unit tests for the marker's parsing and placement; CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bjornpagen bjornpagen closed this Nov 20, 2026
@bjornpagen
bjornpagen deleted the pr/env-once branch November 20, 2026 02:56
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.

1 participant