]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/core.py
band-aid for SQLAlchemy 1.4
[nominatim.git] / nominatim / api / core.py
index a9fc12439364415e8a8039f2f45b1eccbea9756e..8d503fa5e836cbb9b82ab992530de5cead00bf4b 100644 (file)
@@ -66,7 +66,8 @@ class NominatimAPIAsync:
                        username=dsn.get('user'), password=dsn.get('password'),
                        host=dsn.get('host'), port=int(dsn['port']) if 'port' in dsn else None,
                        query=query)
-            engine = sa_asyncio.create_async_engine(dburl, future=True)
+            engine = sa_asyncio.create_async_engine(dburl, future=True,
+                                                    echo=self.config.get_bool('DEBUG_SQL'))
 
             try:
                 async with engine.begin() as conn: