Skip to content

Bug: The LITESTAR_QUIET_CONSOLE environment variable is treated as a truthy string #4401

@Peopl3s

Description

@Peopl3s

Description

"0" or "false" behave like True.

https://github.com/search?q=repo%3Alitestar-org%2Flitestar%20LITESTAR_QUIET_CONSOLE&type=code

What to do: parse the boolean explicitly (in {"1","true","yes"}), and use it in the CLI in the same way.

URL to code causing the issue

No response

MCVE

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

No response

Logs


Litestar Version

2.17.0

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛This is something that is not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions