Commit 7b20492
fix: use module logger instead of root logger in b_aiosqlite.py
All other persister modules in burr/integrations/persisters/ use
logging.getLogger(__name__) to create a properly scoped logger.
b_aiosqlite.py was using logging.getLogger() (no arguments), which
returns the root logger.
Using the root logger is bad practice because:
- It causes log messages to bypass the module's namespace, making it
harder to filter or configure logging for this specific module.
- It can lead to unexpected log output appearing in the root logger's
handlers even when the module's logging is intended to be suppressed.
This one-line fix changes it to logging.getLogger(__name__) for
consistency with all other persister implementations.1 parent 0e883bb commit 7b20492
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments