From d5b28d8fdf5ea9f4f9bc21cf56941d83501ae6fc Mon Sep 17 00:00:00 2001 From: Karsten Deininger Date: Thu, 12 Jul 2018 16:20:12 +0200 Subject: [PATCH] Remove echo=True Remove `echo=True` to prevent the application's logging configuration from being overwritten. --- pyramid_georest/lib/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid_georest/lib/database.py b/pyramid_georest/lib/database.py index 6f74508..c986d5f 100644 --- a/pyramid_georest/lib/database.py +++ b/pyramid_georest/lib/database.py @@ -36,7 +36,7 @@ def __init__(self, url): """ self.url = url if 'cx_oracle' in self.url: - self.engine = create_engine(self.url, echo=True, pool_size=1, coerce_to_unicode=True) + self.engine = create_engine(self.url, pool_size=1, coerce_to_unicode=True) else: - self.engine = create_engine(self.url, echo=True, pool_size=1) - self.session = scoped_session(sessionmaker(bind=self.engine, extension=ZopeTransactionExtension())) \ No newline at end of file + self.engine = create_engine(self.url, pool_size=1) + self.session = scoped_session(sessionmaker(bind=self.engine, extension=ZopeTransactionExtension()))