denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

__name__ missed at getLogger in tds.py

opened this issue · comments

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)

Duplicate of #117

Closing since #117 was resolved