llama-stack-mirror/llama_stack/cli
Ashwin Bharambe 71ead88bce
fix(logging): move module-level initialization to explicit setup calls (#3874)
- Moved environment variable parsing and `setup_logging()` call from
module level to proper initialization points
- Added explicit `setup_logging()` calls in `server.py::create_app()`
and `library_client.py::AsyncLlamaStackAsLibraryClient.__init__()`

Module-level side effects are bad practice and can cause issues with
import order, testing, and circular dependencies. The previous
implementation ran logging setup on every import of the log module,
which is unpredictable and difficult to control.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-21 11:08:25 -07:00
..
scripts API Updates (#73) 2024-09-17 19:51:35 -07:00
stack chore: remove build.py (#3869) 2025-10-20 16:28:15 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
llama.py fix(logging): move module-level initialization to explicit setup calls (#3874) 2025-10-21 11:08:25 -07:00
subcommand.py API Updates (#73) 2024-09-17 19:51:35 -07:00
table.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
utils.py chore: rename templates to distributions (#3035) 2025-08-04 11:34:17 -07:00