From: jaskiratsingh Date: Tue, 2 Apr 2019 17:34:09 +0000 (+0530) Subject: Doc updated X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4583%2Fhead;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Doc updated --- diff --git a/lib/sqlalchemy/engine/__init__.py b/lib/sqlalchemy/engine/__init__.py index ac53fa637f..668cfee902 100644 --- a/lib/sqlalchemy/engine/__init__.py +++ b/lib/sqlalchemy/engine/__init__.py @@ -171,8 +171,9 @@ def create_engine(*args, **kwargs): :param echo_pool=False: if True, the connection pool will log all pool disconnects and whether reconnection attempts have exhausted - or not to the logging stream, which defaults to sys.stdout. This flag - ultimately controls a Python logger; see :ref:`dbengine_logging` for + or not to the logging stream, which defaults to sys.stdout. This also logs + pool checkins/checkouts, but for that you need to set your log level to debug. + This flag ultimately controls a Python logger; see :ref:`dbengine_logging` for information on how to configure logging directly. :param empty_in_strategy: The SQL compilation strategy to use when diff --git a/lib/sqlalchemy/pool/base.py b/lib/sqlalchemy/pool/base.py index 7bab2e532d..a3d64fc58b 100644 --- a/lib/sqlalchemy/pool/base.py +++ b/lib/sqlalchemy/pool/base.py @@ -107,8 +107,9 @@ class Pool(log.Identified): :param echo: if True, the connection pool will log all pool disconnects and whether reconnection attempts have exhausted - or not to the logging stream, which defaults to sys.stdout. Echoing - can also be achieved by enabling logging for the "sqlalchemy.pool" + or not to the logging stream, which defaults to sys.stdout. This also logs + pool checkins/checkouts, but for that you need to set your log level to debug. + Echoing can also be achieved by enabling logging for the "sqlalchemy.pool" namespace. Defaults to False. :param use_threadlocal: If set to True, repeated calls to