Dropped logging.basicConfig() call.

It messes up with projects using logging but where no handler is
installed on the root logger.  Bug reported by Joe Abbate.
This commit is contained in:
Daniele Varrazzo 2010-07-09 23:21:06 +01:00
parent 3773b50bb3
commit 927f2bb1f1
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,10 @@
* psycopg/cursor_type.c: executemany() propagates exceptions raised by the * psycopg/cursor_type.c: executemany() propagates exceptions raised by the
iterable to the caller. iterable to the caller.
* lib/pool.py: dropped logging.basicConfig() call. It messes up with
projects using logging but where no handler is installed on the root
logger. Bug reported by Joe Abbate.
2010-05-20 Daniele Varrazzo <daniele.varrazzo@gmail.com> 2010-05-20 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* psycopg/typecast_datetime.c: Round seconds in historical timezones to * psycopg/typecast_datetime.c: Round seconds in historical timezones to

View File

@ -28,9 +28,6 @@ import psycopg2
try: try:
import logging import logging
# do basic initialization if the module is not already initialized
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s')
# create logger object for psycopg2 module and sub-modules # create logger object for psycopg2 module and sub-modules
_logger = logging.getLogger("psycopg2") _logger = logging.getLogger("psycopg2")
def dbg(*args): def dbg(*args):