diff --git a/ChangeLog b/ChangeLog index 6af08424..03efab39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ * psycopg/cursor_type.c: executemany() propagates exceptions raised by the 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 * psycopg/typecast_datetime.c: Round seconds in historical timezones to diff --git a/lib/pool.py b/lib/pool.py index f9cdab68..ab517b6a 100644 --- a/lib/pool.py +++ b/lib/pool.py @@ -28,9 +28,6 @@ import psycopg2 try: 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 _logger = logging.getLogger("psycopg2") def dbg(*args):