python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Set default level of logger "gino" to WARNING #723

Closed fantix closed 4 years ago

fantix commented 4 years ago

Looks like the echo=False feature depends on that the default level of a parent logger of gino.engine._SAEngine is WARNING. Without this fix, the parent logger is root. In cases of for example uvicorn, the default root level is INFO and echo=False didn't work.

Fixes #710

fantix commented 4 years ago

Thank you!