From e98ad34eca7e9f59fb07cd8b7ec317c1cb989848 Mon Sep 17 00:00:00 2001 From: jaskiratsingh Date: Tue, 2 Apr 2019 23:04:09 +0530 Subject: [PATCH] Doc updated --- lib/sqlalchemy/engine/__init__.py | 5 +++-- lib/sqlalchemy/pool/base.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 -- 2.47.3