diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-13 13:53:31 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-13 13:53:31 -0500 |
| commit | 5f1fbf575915470391c5a816d99a742e64b6be25 (patch) | |
| tree | e47cc04988a835ef03f1b3bb02e5a5c4d0495e24 /lib/sqlalchemy/engine/strategies.py | |
| parent | 3290ac23df9eed8a61324eb68f062a7de29e549d (diff) | |
| download | sqlalchemy-5f1fbf575915470391c5a816d99a742e64b6be25.tar.gz | |
- Added "logging_name" argument to create_engine(), Pool() constructor
as well as "pool_logging_name" argument to create_engine() which
filters down to that of Pool. Issues the given string name
within the "name" field of logging messages instead of the default
hex identifier string. [ticket:1555]
Diffstat (limited to 'lib/sqlalchemy/engine/strategies.py')
| -rw-r--r-- | lib/sqlalchemy/engine/strategies.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/strategies.py b/lib/sqlalchemy/engine/strategies.py index 7a8856ba8..7c434105c 100644 --- a/lib/sqlalchemy/engine/strategies.py +++ b/lib/sqlalchemy/engine/strategies.py @@ -90,7 +90,8 @@ class DefaultEngineStrategy(EngineStrategy): # consume pool arguments from kwargs, translating a few of # the arguments - translate = {'echo': 'echo_pool', + translate = {'logging_name': 'pool_logging_name', + 'echo': 'echo_pool', 'timeout': 'pool_timeout', 'recycle': 'pool_recycle', 'use_threadlocal':'pool_threadlocal'} |
