mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
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:
parent
3773b50bb3
commit
927f2bb1f1
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user