From 780efd065bba30cefb967cdf804dc51f9c98e32c Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Thu, 19 Dec 2019 18:00:00 +0100 Subject: [PATCH] core: add dedicated flag to debug sql queries instead of rely of debug flag which is for something else. --- rhodecode/lib/utils2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/utils2.py b/rhodecode/lib/utils2.py index 8dad8543..156b131a 100644 --- a/rhodecode/lib/utils2.py +++ b/rhodecode/lib/utils2.py @@ -370,7 +370,7 @@ def engine_from_config(configuration, prefix='sqlalchemy.', **kwargs): """Custom engine_from_config functions.""" log = logging.getLogger('sqlalchemy.engine') use_ping_connection = asbool(configuration.pop('sqlalchemy.db1.ping_connection', None)) - debug = asbool(configuration.get('debug')) + debug = asbool(configuration.pop('sqlalchemy.db1.debug_query', None)) engine = sqlalchemy.engine_from_config(configuration, prefix, **kwargs)