denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
MIT License
190 stars 52 forks source link

__name__ missed at getLogger in tds.py #125

Closed ghost closed 11 months ago

ghost commented 3 years ago

Current version of tds.py has that code on line 15

logger = logging.getLogger()

It is better to add 'name' here, like that

logger = logging.getLogger(name)

Asking because I can change logging level for all modules in that package, except tds.py

logging.getLogger('pytds').setLevel(logging.ERROR)

niconil commented 3 years ago

Duplicate of #117

denisenkom commented 11 months ago

Closing since #117 was resolved