diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-07-09 23:21:06 +0100 | 
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-07-09 23:23:10 +0100 | 
| commit | 927f2bb1f1014bac0d484ea997b148734b2f8a25 (patch) | |
| tree | d75753857d7b8e74d450b1eefde11356e0717707 | |
| parent | 3773b50bb388c0edad2dbc0f6e3dee71012c608f (diff) | |
| download | psycopg2-927f2bb1f1014bac0d484ea997b148734b2f8a25.tar.gz | |
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.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | lib/pool.py | 3 | 
2 files changed, 4 insertions, 3 deletions
| @@ -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  <daniele.varrazzo@gmail.com>  	* psycopg/typecast_datetime.c: Round seconds in historical timezones to diff --git a/lib/pool.py b/lib/pool.py index f9cdab6..ab517b6 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): | 
