Skip to content

v0.4.1 — validate-mode fail-safe

Choose a tag to compare

@heysamtexas heysamtexas released this 11 Jun 01:20
· 3 commits to main since this release
f07e8e8

Hardens validation-mode resolution so a misconfigured prod environment cannot start crashing the host.

uv add "git+https://github.com/collide-ai/collide-logging-py.git@v0.4.1"

Fixed

  • Unrecognized COLLIDE_LOG_VALIDATE values fail safe to lenient (#37). Previously only the literal "lenient" enabled lenient mode; any other set value (a typo like leniant, stray whitespace, or empty string) silently fell through to raise mode, where a schema violation throws EventValidationError into the host — defeating v0.4.0's "never crashes in prod" guarantee. The var is now normalized (whitespace stripped, case-insensitive); unrecognized set values resolve to lenient with a one-time collide_logging.invalid_validate_mode warning carrying the offending value.

Behavior note: COLLIDE_LOG_VALIDATE="" now resolves to lenient (was raise-mode). Leave the var unset for raise-mode.