From 927f2bb1f1014bac0d484ea997b148734b2f8a25 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 9 Jul 2010 23:21:06 +0100 Subject: [PATCH] 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. --- ChangeLog | 4 ++++ lib/pool.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) 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):