diff --git a/CHANGELOG.md b/CHANGELOG.md index 139b999..9b8bb89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.1] - 2026-04-05 + +### Fixed + +- **structlog API compatibility** — replaced `structlog.get_level_from_name()` with `logging.getLevelName()` from the stdlib for compatibility with structlog ≥ 25.x which removed that function + ## [0.4.0] - 2026-03-30 ### Added diff --git a/src/summarizer/main.py b/src/summarizer/main.py index d34c49b..344007a 100644 --- a/src/summarizer/main.py +++ b/src/summarizer/main.py @@ -1,6 +1,7 @@ from __future__ import annotations import asyncio +import logging import sys from dataclasses import dataclass from datetime import UTC, datetime @@ -615,7 +616,7 @@ async def run() -> None: structlog.configure( wrapper_class=structlog.make_filtering_bound_logger( - structlog.get_level_from_name(settings.log_level) + logging.getLevelName(settings.log_level.upper()) ), )