dashitongzhi opened a new pull request, #758: URL: https://github.com/apache/burr/pull/758
## Problem In `burr/integrations/persisters/b_aiosqlite.py`, the logger is created using `logging.getLogger()` (no arguments), which returns the **root logger**. Every other persister module in the same package uses `logging.getLogger(__name__)` to create a properly scoped module logger. Using the root logger causes log messages to bypass the module's namespace, making it harder to filter or configure logging for this specific module, and can lead to unexpected log output appearing in root logger handlers even when the module's logging is intended to be suppressed. ## Fix Changed `logging.getLogger()` to `logging.getLogger(__name__)` for consistency with all other persister implementations: ```python # Before logger = logging.getLogger() # After logger = logging.getLogger(__name__) ``` This is a one-line fix. All other persisters already use this pattern: - `b_pymongo.py` → `logging.getLogger(__name__)` - `b_mongodb.py` → `logging.getLogger(__name__)` - `b_redis.py` → `logging.getLogger(__name__)` - `b_asyncpg.py` → `logging.getLogger(__name__)` - `b_psycopg2.py` → `logging.getLogger(__name__)` - `postgresql.py` → `logging.getLogger(__name__)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
